Remove id property

This commit is contained in:
Steve Ruiz 2021-09-08 11:46:28 +01:00
parent 2a799ade6e
commit fb2c5088a9
3 changed files with 2 additions and 9 deletions

View file

@ -100,12 +100,6 @@ export class TLDrawState extends StateManager<Data> {
private _onChange?: (tlstate: TLDrawState, data: Data, reason: string) => void
private _onMount?: (tlstate: TLDrawState) => void
_id?: string
get id() {
return this._id
}
selectHistory: SelectHistory = {
stack: [[]],
pointer: 0,
@ -140,8 +134,6 @@ export class TLDrawState extends StateManager<Data> {
return state
})
this._id = id
this._onChange = onChange
this._onMount = onMount

View file

@ -3,6 +3,7 @@
"include": ["src"],
"exclude": ["node_modules", "dist", "docs"],
"compilerOptions": {
"strict": true,
"composite": true,
"emitDeclarationOnly": true,
"rootDir": "src",

View file

@ -22,7 +22,7 @@
"noUnusedLocals": false /* Report errors on unused locals. */,
"noUnusedParameters": false /* Report errors on unused parameters. */,
"skipLibCheck": true,
"strict": false,
"strict": true,
"strictFunctionTypes": true /* Enable strict checking of function types. */,
"strictNullChecks": true /* Enable strict null checks. */,
"stripInternal": true,