MCPcopy Create free account
hub / github.com/decaporg/decap-cms / constructor

Method constructor

packages/decap-cms-lib-util/src/Cursor.ts:103–112  ·  view source on GitHub ↗
(...args: {}[])

Source from the content-addressed store, hash-verified

101 }
102
103 constructor(...args: {}[]) {
104 if (args[0] instanceof Cursor) {
105 return args[0] as Cursor;
106 }
107
108 this.store = createCursorStore(...args);
109 this.actions = this.store.get('actions');
110 this.data = this.store.get('data');
111 this.meta = this.store.get('meta');
112 }
113
114 // eslint-disable-next-line @typescript-eslint/no-explicit-any
115 updateStore(...args: any[]) {

Callers

nothing calls this directly

Calls 2

createCursorStoreFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected