MCPcopy
hub / github.com/typestyle/typestyle / constructor

Method constructor

src/internal/typestyle.ts:30–43  ·  view source on GitHub ↗
({ autoGenerateTag }: { autoGenerateTag: boolean })

Source from the content-addressed store, hash-verified

28 private _lastFreeStyleChangeId: number;
29
30 constructor({ autoGenerateTag }: { autoGenerateTag: boolean }) {
31 const freeStyle = createFreeStyle();
32
33 this._autoGenerateTag = autoGenerateTag;
34 this._freeStyle = freeStyle;
35 this._lastFreeStyleChangeId = freeStyle.changeId;
36 this._pending = 0;
37 this._pendingRawChange = false;
38 this._raw = '';
39 this._tag = undefined;
40
41 // rebind prototype to TypeStyle. It might be better to do a function() { return this.style.apply(this, arguments)}
42 this.style = this.style.bind(this);
43 }
44
45 /**
46 * Only calls cb all sync operations settle

Callers

nothing calls this directly

Calls 1

createFreeStyleFunction · 0.85

Tested by

no test coverage detected