UNPKG

1.48 kBTypeScriptView Raw
1declare module 'ember-data/store' {
2 import { adapterFor, normalize, pushPayload, serializeRecord, serializerFor } from '@ember-data/legacy-compat';
3 import type { FetchManager } from '@ember-data/legacy-compat/-private';
4 import type Model from '@ember-data/model';
5 import type { ModelStore } from '@ember-data/model/-private';
6 import BaseStore from '@ember-data/store';
7 import type { CacheCapabilitiesManager, ModelSchema, SchemaService } from '@ember-data/store/types';
8 import type { StableRecordIdentifier } from '@warp-drive/core-types';
9 import type { Cache } from '@warp-drive/core-types/cache';
10 import type { TypeFromInstance } from '@warp-drive/core-types/record';
11 export default class Store extends BaseStore {
12 _fetchManager: FetchManager;
13 constructor(args?: Record<string, unknown>);
14 createSchemaService(): SchemaService;
15 createCache(storeWrapper: CacheCapabilitiesManager): Cache;
16 instantiateRecord(this: ModelStore, identifier: StableRecordIdentifier, createRecordArgs: Record<string, unknown>): Model;
17 teardownRecord(record: Model): void;
18 modelFor<T>(type: TypeFromInstance<T>): ModelSchema<T>;
19 modelFor(type: string): ModelSchema;
20 adapterFor: typeof adapterFor;
21 serializerFor: typeof serializerFor;
22 pushPayload: typeof pushPayload;
23 normalize: typeof normalize;
24 serializeRecord: typeof serializeRecord;
25 destroy(): void;
26 }
27}
28//# sourceMappingURL=store.d.ts.map
\No newline at end of file