-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.d.ts
118 lines (97 loc) · 2.56 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
// Type definitions for ember-data 5.2
// Project: https://github.com/emberjs/data
// Definitions by: Derek Wickern <https://github.com/dwickern>
// Mike North <https://github.com/mike-north>
// Chris Krycho <https://github.com/chriskrycho>
// James C. Davis <https://github.com/jamescdavis>
// Chris Thoburn <https://github.com/runspired>
// Peter Wagenet <https://github.com/wagenet>
// Krystan HuffMenne <https://github.com/gitKrystan>
// Erik Rothoff Andersson <[email protected]>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 4.4
import Store from "./store";
import Model, {
Errors,
ManyArray,
PromiseManyArray,
Snapshot,
attr,
belongsTo,
hasMany
} from "./model";
import Adapter, { BuildURLMixin } from "./adapter";
import AdapterError, {
InvalidError,
TimeoutError,
AbortError,
UnauthorizedError,
ForbiddenError,
NotFoundError,
ConflictError,
ServerError,
} from "./adapter/error";
import Serializer from "./serializer";
import EmbeddedRecordsMixin from "./serializer/embedded-records-mixin";
import JSONAPIAdapter from "./adapter/json-api";
import RESTAdapter from "./adapter/rest";
import JSONSerializer from "./serializer/json";
import JSONAPISerializer from "./serializer/json-api";
import RESTSerializer from "./serializer/rest";
import Transform from "./transform";
import BooleanTransform from "./transform/boolean";
import DateTransform from "./transform/date";
import NumberTransform from "./transform/number";
import StringTransform from "./transform/string";
import ModelRegistry from "ember-data/types/registries/model";
export namespace DS {
const VERSION: string;
export {
Store,
ModelRegistry,
PromiseArray,
PromiseObject,
PromiseManyArray,
ManyArray,
Model,
attr,
Errors,
Snapshot,
Adapter,
AdapterError,
InvalidError,
TimeoutError,
AbortError,
UnauthorizedError,
ForbiddenError,
NotFoundError,
ConflictError,
ServerError,
Serializer,
RESTAdapter,
BuildURLMixin,
RESTSerializer,
JSONSerializer,
JSONAPIAdapter,
JSONAPISerializer,
Transform,
DateTransform,
StringTransform,
NumberTransform,
BooleanTransform,
EmbeddedRecordsMixin,
belongsTo,
hasMany,
}
}
export default DS;
declare module "@ember/service" {
interface Registry {
store: Store;
}
}
declare module "ember-test-helpers" {
interface TestContext {
store: Store;
}
}