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

Method constructor

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

createCursorStoreFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected