@discourse/types 2026.9.0-12832138 → 2026.9.0-c0ef3a11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/external-types/discourse-i18n/index.d.ts +3 -2
- package/external-types/ember-compat__tracked-built-ins/index.d.ts +23 -12
- package/external-types/ember-modifier/index.d.ts +19 -17
- package/external-types/ember-qunit/index.d.ts +16 -7
- package/external-types/ember-truth-helpers/index.d.ts +33 -33
- package/external-types/ember__render-modifiers/index.d.ts +13 -7
- package/external-types/ember__string/index.d.ts +10 -10
- package/external-types/ember__test-helpers/index.d.ts +185 -155
- package/external-types/floating-ui__dom/index.d.ts +77 -69
- package/external-types/glimmer__component/index.d.ts +18 -10
- package/external-types/glimmer__syntax/index.d.ts +575 -129
- package/external-types/glint__template/index.d.ts +74 -66
- package/external-types/pretender/index.d.ts +2 -2
- package/external-types/rsvp/index.d.ts +4 -0
- package/external-types/sinon/index.d.ts +7 -3
- package/package.json +1 -1
|
@@ -62,7 +62,8 @@ declare module 'discourse-i18n' {
|
|
|
62
62
|
}
|
|
63
63
|
export default I18nInstance;
|
|
64
64
|
export function i18n(scope: any, options?: {}): any;
|
|
65
|
-
import * as Cardinals from
|
|
66
|
-
import Messages from
|
|
65
|
+
import * as Cardinals from 'make-plural/cardinals';
|
|
66
|
+
import Messages from '@messageformat/runtime/messages';
|
|
67
|
+
const I18nInstance: I18n;
|
|
67
68
|
//# sourceMappingURL=index.d.ts.map
|
|
68
69
|
}
|
|
@@ -24,7 +24,8 @@ declare module '@ember-compat/tracked-built-ins/-private/map' {
|
|
|
24
24
|
delete(key: K): boolean;
|
|
25
25
|
// **** ALL SETTERS ****
|
|
26
26
|
clear(): void;
|
|
27
|
-
}
|
|
27
|
+
}
|
|
28
|
+
class TrackedWeakMap<K extends object = object, V = unknown> implements WeakMap<K, V> {
|
|
28
29
|
private storages;
|
|
29
30
|
private vals;
|
|
30
31
|
private readStorageFor;
|
|
@@ -66,7 +67,8 @@ declare module '@ember-compat/tracked-built-ins/-private/set' {
|
|
|
66
67
|
delete(value: T): boolean;
|
|
67
68
|
// **** ALL SETTERS ****
|
|
68
69
|
clear(): void;
|
|
69
|
-
}
|
|
70
|
+
}
|
|
71
|
+
class TrackedWeakSet<T extends object = object> implements WeakSet<T> {
|
|
70
72
|
private storages;
|
|
71
73
|
private vals;
|
|
72
74
|
private storageFor;
|
|
@@ -114,9 +116,16 @@ declare module '@ember-compat/tracked-built-ins/-private/array' {
|
|
|
114
116
|
//# sourceMappingURL=-private/array.d.ts.map
|
|
115
117
|
}
|
|
116
118
|
declare module '@ember-compat/tracked-built-ins/-private/decorator' {
|
|
117
|
-
import { TrackedMap, TrackedWeakMap } from
|
|
118
|
-
import { TrackedSet, TrackedWeakSet } from
|
|
119
|
-
import TrackedArray from
|
|
119
|
+
import { TrackedMap, TrackedWeakMap } from '@ember-compat/tracked-built-ins/-private/map';
|
|
120
|
+
import { TrackedSet, TrackedWeakSet } from '@ember-compat/tracked-built-ins/-private/set';
|
|
121
|
+
import TrackedArray from '@ember-compat/tracked-built-ins/-private/array';
|
|
122
|
+
function tracked<T>(obj: T[] | typeof Array): TrackedArray<T>;
|
|
123
|
+
function tracked<T>(obj: Set<T> | typeof Set): TrackedSet<T>;
|
|
124
|
+
function tracked<T, U>(obj: Map<T, U> | typeof Map): TrackedMap<T, U>;
|
|
125
|
+
function tracked<T extends object>(obj: WeakSet<T> | typeof WeakSet): TrackedWeakSet<T>;
|
|
126
|
+
function tracked<T extends object, U>(obj: WeakMap<T, U> | typeof WeakMap): TrackedWeakMap<T, U>;
|
|
127
|
+
function tracked<T extends object>(obj: T | typeof Object): T;
|
|
128
|
+
function tracked(obj: object, key: string | symbol, desc?: PropertyDescriptor): void;
|
|
120
129
|
export { tracked as default };
|
|
121
130
|
|
|
122
131
|
}
|
|
@@ -139,17 +148,18 @@ declare module '@ember-compat/tracked-built-ins/-private/object' {
|
|
|
139
148
|
*/
|
|
140
149
|
fromEntries<T>(entries: Iterable<readonly [any, T][]>): Record<string, T>;
|
|
141
150
|
new <T extends Record<PropertyKey, unknown> = Record<PropertyKey, unknown>>(obj?: T): T;
|
|
142
|
-
}
|
|
151
|
+
}
|
|
152
|
+
const TrackedObject: TrackedObjectClass;
|
|
143
153
|
type TrackedObject<T = {}> = T;
|
|
144
154
|
export { TrackedObject as default };
|
|
145
155
|
|
|
146
156
|
}
|
|
147
157
|
declare module '@ember-compat/tracked-built-ins' {
|
|
148
|
-
export { default as tracked } from
|
|
149
|
-
export { default as TrackedArray } from
|
|
150
|
-
export { default as TrackedObject } from
|
|
151
|
-
export { TrackedMap, TrackedWeakMap } from
|
|
152
|
-
export { TrackedSet, TrackedWeakSet } from
|
|
158
|
+
export { default as tracked } from '@ember-compat/tracked-built-ins/-private/decorator';
|
|
159
|
+
export { default as TrackedArray } from '@ember-compat/tracked-built-ins/-private/array';
|
|
160
|
+
export { default as TrackedObject } from '@ember-compat/tracked-built-ins/-private/object';
|
|
161
|
+
export { TrackedMap, TrackedWeakMap } from '@ember-compat/tracked-built-ins/-private/map';
|
|
162
|
+
export { TrackedSet, TrackedWeakSet } from '@ember-compat/tracked-built-ins/-private/set';
|
|
153
163
|
|
|
154
164
|
}
|
|
155
165
|
declare module '@ember-compat/tracked-built-ins/-private/property-storage-map' {
|
|
@@ -163,7 +173,8 @@ declare module '@ember-compat/tracked-built-ins/-private/property-storage-map' {
|
|
|
163
173
|
|
|
164
174
|
}
|
|
165
175
|
declare module '@ember-compat/tracked-built-ins/-private/utils' {
|
|
166
|
-
function isAccessorDescriptor(descriptor: PropertyDescriptor): boolean;
|
|
176
|
+
function isAccessorDescriptor(descriptor: PropertyDescriptor): boolean;
|
|
177
|
+
function cloneObjectWithAccessors<T extends Record<PropertyKey, unknown> = Record<PropertyKey, unknown>>(obj: T): T;
|
|
167
178
|
export { isAccessorDescriptor, cloneObjectWithAccessors };
|
|
168
179
|
|
|
169
180
|
}
|
|
@@ -51,7 +51,8 @@ declare module 'ember-modifier/-private/signature' {
|
|
|
51
51
|
* (This example does not need to be, and should not be, class-based, but is
|
|
52
52
|
* useful to illustrate how to use the type utility.)
|
|
53
53
|
*/
|
|
54
|
-
export type PositionalArgs<S> = 'Args' extends keyof S ? GetOrElse<S['Args'], 'Positional', DefaultPositional> : DefaultPositional;
|
|
54
|
+
export type PositionalArgs<S> = 'Args' extends keyof S ? GetOrElse<S['Args'], 'Positional', DefaultPositional> : DefaultPositional;
|
|
55
|
+
const Empty: unique symbol;
|
|
55
56
|
export interface EmptyObject {
|
|
56
57
|
[Empty]?: true;
|
|
57
58
|
}
|
|
@@ -105,7 +106,8 @@ declare module 'ember-modifier/-private/signature' {
|
|
|
105
106
|
//# sourceMappingURL=signature.d.ts.map
|
|
106
107
|
}
|
|
107
108
|
declare module 'ember-modifier/-private/opaque' {
|
|
108
|
-
const Brand: unique symbol;
|
|
109
|
+
const Brand: unique symbol;
|
|
110
|
+
class _Opaque<T> {
|
|
109
111
|
private readonly [Brand];
|
|
110
112
|
}
|
|
111
113
|
interface Opaque<T> extends _Opaque<T> {
|
|
@@ -114,9 +116,9 @@ declare module 'ember-modifier/-private/opaque' {
|
|
|
114
116
|
//# sourceMappingURL=opaque.d.ts.map
|
|
115
117
|
}
|
|
116
118
|
declare module 'ember-modifier/-private/class-based/modifier' {
|
|
117
|
-
import type Owner from
|
|
118
|
-
import type { ElementFor, ArgsFor, DefaultSignature, PositionalArgs, NamedArgs } from
|
|
119
|
-
import type Opaque from
|
|
119
|
+
import type Owner from '@ember/owner';
|
|
120
|
+
import type { ElementFor, ArgsFor, DefaultSignature, PositionalArgs, NamedArgs } from 'ember-modifier/-private/signature';
|
|
121
|
+
import type Opaque from 'ember-modifier/-private/opaque';
|
|
120
122
|
export default interface ClassBasedModifier<S = DefaultSignature> extends Opaque<S> {
|
|
121
123
|
}
|
|
122
124
|
/**
|
|
@@ -180,9 +182,9 @@ declare module 'ember-modifier/-private/class-based/modifier' {
|
|
|
180
182
|
//# sourceMappingURL=modifier.d.ts.map
|
|
181
183
|
}
|
|
182
184
|
declare module 'ember-modifier/-private/function-based/modifier' {
|
|
183
|
-
import type { ElementFor, EmptyObject, NamedArgs, PositionalArgs } from
|
|
184
|
-
import type Modifier from
|
|
185
|
-
export
|
|
185
|
+
import type { ElementFor, EmptyObject, NamedArgs, PositionalArgs } from 'ember-modifier/-private/signature';
|
|
186
|
+
import type Modifier from 'ember-modifier/-private/class-based/modifier';
|
|
187
|
+
export abstract class FunctionBasedModifierInstance<S> extends Modifier<S> {
|
|
186
188
|
protected abstract __concrete__: never;
|
|
187
189
|
}
|
|
188
190
|
export type FunctionBasedModifier<S> = abstract new () => FunctionBasedModifierInstance<S>;
|
|
@@ -251,16 +253,16 @@ declare module 'ember-modifier/-private/function-based/modifier' {
|
|
|
251
253
|
//# sourceMappingURL=modifier.d.ts.map
|
|
252
254
|
}
|
|
253
255
|
declare module 'ember-modifier' {
|
|
254
|
-
export { default } from
|
|
255
|
-
export { default as modifier } from
|
|
256
|
-
export type { FunctionBasedModifier } from
|
|
257
|
-
export type { ArgsFor, NamedArgs, PositionalArgs, } from
|
|
256
|
+
export { default } from 'ember-modifier/-private/class-based/modifier';
|
|
257
|
+
export { default as modifier } from 'ember-modifier/-private/function-based/modifier';
|
|
258
|
+
export type { FunctionBasedModifier } from 'ember-modifier/-private/function-based/modifier';
|
|
259
|
+
export type { ArgsFor, NamedArgs, PositionalArgs, } from 'ember-modifier/-private/signature';
|
|
258
260
|
//# sourceMappingURL=index.d.ts.map
|
|
259
261
|
}
|
|
260
262
|
declare module 'ember-modifier/-private/class-based/modifier-manager' {
|
|
261
|
-
import type Owner from
|
|
262
|
-
import type ClassBasedModifier from
|
|
263
|
-
import type { ArgsFor, ElementFor } from
|
|
263
|
+
import type Owner from '@ember/owner';
|
|
264
|
+
import type ClassBasedModifier from 'ember-modifier/-private/class-based/modifier';
|
|
265
|
+
import type { ArgsFor, ElementFor } from 'ember-modifier/-private/signature';
|
|
264
266
|
/**
|
|
265
267
|
* The state bucket used throughout the life-cycle of the modifier. Basically a
|
|
266
268
|
* state *machine*, where the framework calls us with the version we hand back
|
|
@@ -301,8 +303,8 @@ declare module 'ember-modifier/-private/class-based/modifier-manager' {
|
|
|
301
303
|
//# sourceMappingURL=modifier-manager.d.ts.map
|
|
302
304
|
}
|
|
303
305
|
declare module 'ember-modifier/-private/function-based/modifier-manager' {
|
|
304
|
-
import type { FunctionBasedModifierDefinition, Teardown } from
|
|
305
|
-
import type { ArgsFor, ElementFor } from
|
|
306
|
+
import type { FunctionBasedModifierDefinition, Teardown } from 'ember-modifier/-private/function-based/modifier';
|
|
307
|
+
import type { ArgsFor, ElementFor } from 'ember-modifier/-private/signature';
|
|
306
308
|
interface State<S> {
|
|
307
309
|
instance: FunctionBasedModifierDefinition<S>;
|
|
308
310
|
}
|
|
@@ -7,9 +7,9 @@ declare module 'ember-qunit' {
|
|
|
7
7
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
8
8
|
// Minimum TypeScript Version: 4.4
|
|
9
9
|
|
|
10
|
-
import EmberTestAdapter from
|
|
11
|
-
import { Resolver } from
|
|
12
|
-
import { TestContext } from
|
|
10
|
+
import EmberTestAdapter from '@ember/test/adapter';
|
|
11
|
+
import { Resolver } from '@ember/owner';
|
|
12
|
+
import { TestContext } from '@ember/test-helpers';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Sets a Resolver globally which will be used to look up objects from each test's container.
|
|
@@ -86,7 +86,7 @@ declare module 'ember-qunit' {
|
|
|
86
86
|
|
|
87
87
|
export class QUnitAdapter extends EmberTestAdapter {}
|
|
88
88
|
|
|
89
|
-
export { module, test, skip, only, todo } from
|
|
89
|
+
export { module, test, skip, only, todo } from 'qunit';
|
|
90
90
|
|
|
91
91
|
interface QUnitStartOptions {
|
|
92
92
|
/**
|
|
@@ -120,7 +120,16 @@ declare module 'ember-qunit' {
|
|
|
120
120
|
|
|
121
121
|
export function setupEmberOnerrorValidation(): void;
|
|
122
122
|
|
|
123
|
-
export function start(options?: QUnitStartOptions): void;
|
|
123
|
+
export function start(options?: QUnitStartOptions): void;
|
|
124
|
+
|
|
125
|
+
// SAFETY: all of the `TC extends TestContext` generics below are just wildly,
|
|
126
|
+
// impossibly unsafe. QUnit cannot -- ever! -- guarantee that the test context
|
|
127
|
+
// is properly set up in a type-safe way to match this. However, it is the only
|
|
128
|
+
// way to handle setting state in a TS-visible way prior to Ember RFC 0785,
|
|
129
|
+
// which is slooooowly rolling out across the ecosystem in conjunction with the
|
|
130
|
+
// `<template>` feature.
|
|
131
|
+
|
|
132
|
+
global {
|
|
124
133
|
// NOTE: disables `no-unnecessary-generics` inline because, unfortunately,
|
|
125
134
|
// the design of Ember's test tooling (and indeed *QUnit's* test system)
|
|
126
135
|
// requires that we allow users to update the type of the context of the
|
|
@@ -275,8 +284,8 @@ declare module 'ember-qunit' {
|
|
|
275
284
|
|
|
276
285
|
}
|
|
277
286
|
declare module 'ember-qunit/local-types' {
|
|
278
|
-
import
|
|
279
|
-
import
|
|
287
|
+
import 'ember-source/types';
|
|
288
|
+
import 'ember-source/types/preview';
|
|
280
289
|
|
|
281
290
|
}
|
|
282
291
|
declare module 'ember-qunit/test-loader' {
|
|
@@ -26,8 +26,8 @@ declare module 'ember-truth-helpers/utils/truth-convert' {
|
|
|
26
26
|
//# sourceMappingURL=truth-convert.d.ts.map
|
|
27
27
|
}
|
|
28
28
|
declare module 'ember-truth-helpers/helpers/and' {
|
|
29
|
-
import Helper from
|
|
30
|
-
import { type MaybeTruthy, type TruthConvert } from
|
|
29
|
+
import Helper from '@ember/component/helper';
|
|
30
|
+
import { type MaybeTruthy, type TruthConvert } from 'ember-truth-helpers/utils/truth-convert';
|
|
31
31
|
type FirstFalsy<T> = T extends [infer Item] ? Item : T extends [infer Head, ...infer Tail] ? TruthConvert<Head> extends false ? Head : TruthConvert<Head> extends true ? FirstFalsy<Tail> : Head | FirstFalsy<Tail> : undefined;
|
|
32
32
|
interface AndSignature<T extends MaybeTruthy[]> {
|
|
33
33
|
Args: {
|
|
@@ -62,12 +62,12 @@ declare module 'ember-truth-helpers/helpers/is-array' {
|
|
|
62
62
|
//# sourceMappingURL=is-array.d.ts.map
|
|
63
63
|
}
|
|
64
64
|
declare module 'ember-truth-helpers/helpers/is-empty' {
|
|
65
|
-
import { isEmpty } from
|
|
65
|
+
import { isEmpty } from '@ember/utils';
|
|
66
66
|
export default isEmpty;
|
|
67
67
|
//# sourceMappingURL=is-empty.d.ts.map
|
|
68
68
|
}
|
|
69
69
|
declare module 'ember-truth-helpers/helpers/is-equal' {
|
|
70
|
-
import { isEqual } from
|
|
70
|
+
import { isEqual } from '@ember/utils';
|
|
71
71
|
export default isEqual;
|
|
72
72
|
//# sourceMappingURL=is-equal.d.ts.map
|
|
73
73
|
}
|
|
@@ -88,13 +88,13 @@ declare module 'ember-truth-helpers/helpers/not-eq' {
|
|
|
88
88
|
//# sourceMappingURL=not-eq.d.ts.map
|
|
89
89
|
}
|
|
90
90
|
declare module 'ember-truth-helpers/helpers/not' {
|
|
91
|
-
import { type MaybeTruthy } from
|
|
91
|
+
import { type MaybeTruthy } from 'ember-truth-helpers/utils/truth-convert';
|
|
92
92
|
export default function not(...params: MaybeTruthy[]): boolean;
|
|
93
93
|
//# sourceMappingURL=not.d.ts.map
|
|
94
94
|
}
|
|
95
95
|
declare module 'ember-truth-helpers/helpers/or' {
|
|
96
|
-
import { type Falsy, type MaybeTruthy, type TruthConvert } from
|
|
97
|
-
import Helper from
|
|
96
|
+
import { type Falsy, type MaybeTruthy, type TruthConvert } from 'ember-truth-helpers/utils/truth-convert';
|
|
97
|
+
import Helper from '@ember/component/helper';
|
|
98
98
|
type FirstTruthy<T> = T extends [infer Item] ? Item : T extends [infer Head, ...infer Tail] ? TruthConvert<Head> extends true ? Head : TruthConvert<Head> extends false ? FirstTruthy<Tail> : Exclude<Head, Falsy> | FirstTruthy<Tail> : undefined;
|
|
99
99
|
interface OrSignature<T extends MaybeTruthy[]> {
|
|
100
100
|
Args: {
|
|
@@ -113,35 +113,35 @@ declare module 'ember-truth-helpers/helpers/xor' {
|
|
|
113
113
|
//# sourceMappingURL=xor.d.ts.map
|
|
114
114
|
}
|
|
115
115
|
declare module 'ember-truth-helpers' {
|
|
116
|
-
export { default as and } from
|
|
117
|
-
export { default as eq } from
|
|
118
|
-
export { default as gt } from
|
|
119
|
-
export { default as gte } from
|
|
120
|
-
export { default as isArray } from
|
|
121
|
-
export { default as isEmpty } from
|
|
122
|
-
export { default as isEqual } from
|
|
123
|
-
export { default as lt } from
|
|
124
|
-
export { default as lte } from
|
|
125
|
-
export { default as notEq } from
|
|
126
|
-
export { default as not } from
|
|
127
|
-
export { default as or } from
|
|
128
|
-
export { default as xor } from
|
|
116
|
+
export { default as and } from 'ember-truth-helpers/helpers/and';
|
|
117
|
+
export { default as eq } from 'ember-truth-helpers/helpers/eq';
|
|
118
|
+
export { default as gt } from 'ember-truth-helpers/helpers/gt';
|
|
119
|
+
export { default as gte } from 'ember-truth-helpers/helpers/gte';
|
|
120
|
+
export { default as isArray } from 'ember-truth-helpers/helpers/is-array';
|
|
121
|
+
export { default as isEmpty } from 'ember-truth-helpers/helpers/is-empty';
|
|
122
|
+
export { default as isEqual } from 'ember-truth-helpers/helpers/is-equal';
|
|
123
|
+
export { default as lt } from 'ember-truth-helpers/helpers/lt';
|
|
124
|
+
export { default as lte } from 'ember-truth-helpers/helpers/lte';
|
|
125
|
+
export { default as notEq } from 'ember-truth-helpers/helpers/not-eq';
|
|
126
|
+
export { default as not } from 'ember-truth-helpers/helpers/not';
|
|
127
|
+
export { default as or } from 'ember-truth-helpers/helpers/or';
|
|
128
|
+
export { default as xor } from 'ember-truth-helpers/helpers/xor';
|
|
129
129
|
//# sourceMappingURL=index.d.ts.map
|
|
130
130
|
}
|
|
131
131
|
declare module 'ember-truth-helpers/template-registry' {
|
|
132
|
-
import type { default as and } from
|
|
133
|
-
import type { default as eq } from
|
|
134
|
-
import type { default as gt } from
|
|
135
|
-
import type { default as gte } from
|
|
136
|
-
import type { default as isArray } from
|
|
137
|
-
import type { default as isEmpty } from
|
|
138
|
-
import type { default as isEqual } from
|
|
139
|
-
import type { default as lt } from
|
|
140
|
-
import type { default as lte } from
|
|
141
|
-
import type { default as notEq } from
|
|
142
|
-
import type { default as not } from
|
|
143
|
-
import type { default as or } from
|
|
144
|
-
import type { default as xor } from
|
|
132
|
+
import type { default as and } from 'ember-truth-helpers/helpers/and';
|
|
133
|
+
import type { default as eq } from 'ember-truth-helpers/helpers/eq';
|
|
134
|
+
import type { default as gt } from 'ember-truth-helpers/helpers/gt';
|
|
135
|
+
import type { default as gte } from 'ember-truth-helpers/helpers/gte';
|
|
136
|
+
import type { default as isArray } from 'ember-truth-helpers/helpers/is-array';
|
|
137
|
+
import type { default as isEmpty } from 'ember-truth-helpers/helpers/is-empty';
|
|
138
|
+
import type { default as isEqual } from 'ember-truth-helpers/helpers/is-equal';
|
|
139
|
+
import type { default as lt } from 'ember-truth-helpers/helpers/lt';
|
|
140
|
+
import type { default as lte } from 'ember-truth-helpers/helpers/lte';
|
|
141
|
+
import type { default as notEq } from 'ember-truth-helpers/helpers/not-eq';
|
|
142
|
+
import type { default as not } from 'ember-truth-helpers/helpers/not';
|
|
143
|
+
import type { default as or } from 'ember-truth-helpers/helpers/or';
|
|
144
|
+
import type { default as xor } from 'ember-truth-helpers/helpers/xor';
|
|
145
145
|
export default interface EmberTruthRegistry {
|
|
146
146
|
and: typeof and;
|
|
147
147
|
eq: typeof eq;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare module '@ember/render-modifiers/-private' {
|
|
2
|
-
import { ModifierLike } from
|
|
2
|
+
import { ModifierLike } from '@glint/template';
|
|
3
3
|
|
|
4
4
|
export type RenderModifier<El extends Element, Args extends Array<any>> = InstanceType<
|
|
5
5
|
ModifierLike<{
|
|
@@ -12,7 +12,9 @@ declare module '@ember/render-modifiers/-private' {
|
|
|
12
12
|
|
|
13
13
|
}
|
|
14
14
|
declare module '@ember/render-modifiers/modifiers/did-insert' {
|
|
15
|
-
import { RenderModifier } from
|
|
15
|
+
import { RenderModifier } from '@ember/render-modifiers/-private';
|
|
16
|
+
|
|
17
|
+
const didInsert: abstract new <
|
|
16
18
|
El extends Element,
|
|
17
19
|
Args extends Array<any>
|
|
18
20
|
>() => RenderModifier<El, Args>;
|
|
@@ -21,7 +23,9 @@ declare module '@ember/render-modifiers/modifiers/did-insert' {
|
|
|
21
23
|
|
|
22
24
|
}
|
|
23
25
|
declare module '@ember/render-modifiers/modifiers/did-update' {
|
|
24
|
-
import { RenderModifier } from
|
|
26
|
+
import { RenderModifier } from '@ember/render-modifiers/-private';
|
|
27
|
+
|
|
28
|
+
const didUpdate: abstract new <
|
|
25
29
|
El extends Element,
|
|
26
30
|
Args extends Array<any>
|
|
27
31
|
>() => RenderModifier<El, Args>;
|
|
@@ -30,7 +34,9 @@ declare module '@ember/render-modifiers/modifiers/did-update' {
|
|
|
30
34
|
|
|
31
35
|
}
|
|
32
36
|
declare module '@ember/render-modifiers/modifiers/will-destroy' {
|
|
33
|
-
import { RenderModifier } from
|
|
37
|
+
import { RenderModifier } from '@ember/render-modifiers/-private';
|
|
38
|
+
|
|
39
|
+
const willDestroy: abstract new <
|
|
34
40
|
El extends Element,
|
|
35
41
|
Args extends Array<any>
|
|
36
42
|
>() => RenderModifier<El, Args>;
|
|
@@ -39,9 +45,9 @@ declare module '@ember/render-modifiers/modifiers/will-destroy' {
|
|
|
39
45
|
|
|
40
46
|
}
|
|
41
47
|
declare module '@ember/render-modifiers/template-registry' {
|
|
42
|
-
import type didInsert from
|
|
43
|
-
import type didUpdate from
|
|
44
|
-
import type willDestroy from
|
|
48
|
+
import type didInsert from '@ember/render-modifiers/modifiers/did-insert';
|
|
49
|
+
import type didUpdate from '@ember/render-modifiers/modifiers/did-update';
|
|
50
|
+
import type willDestroy from '@ember/render-modifiers/modifiers/will-destroy';
|
|
45
51
|
|
|
46
52
|
export default interface RenderModifiersRegistry {
|
|
47
53
|
'did-insert': typeof didInsert;
|
|
@@ -18,7 +18,7 @@ declare module '@ember/string' {
|
|
|
18
18
|
@return {String} the camelized string.
|
|
19
19
|
@public
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
21
|
+
export function camelize(str: string): string;
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
Returns the Capitalized form of a string
|
|
@@ -38,7 +38,7 @@ declare module '@ember/string' {
|
|
|
38
38
|
@return {String} The capitalized string.
|
|
39
39
|
@public
|
|
40
40
|
*/
|
|
41
|
-
export
|
|
41
|
+
export function capitalize(str: string): string;
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
Returns the UpperCamelCase form of a string.
|
|
@@ -58,7 +58,7 @@ declare module '@ember/string' {
|
|
|
58
58
|
@return {String} the classified string
|
|
59
59
|
@public
|
|
60
60
|
*/
|
|
61
|
-
export
|
|
61
|
+
export function classify(str: string): string;
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
64
|
Replaces underscores, spaces, or camelCase with dashes.
|
|
@@ -78,7 +78,7 @@ declare module '@ember/string' {
|
|
|
78
78
|
@return {String} the dasherized string.
|
|
79
79
|
@public
|
|
80
80
|
*/
|
|
81
|
-
export
|
|
81
|
+
export function dasherize(str: string): string;
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
84
|
Converts a camelized string into all lower case separated by underscores.
|
|
@@ -97,15 +97,15 @@ declare module '@ember/string' {
|
|
|
97
97
|
@return {String} the decamelized string.
|
|
98
98
|
@public
|
|
99
99
|
*/
|
|
100
|
-
export
|
|
100
|
+
export function decamelize(str: string): string;
|
|
101
101
|
|
|
102
|
-
export
|
|
102
|
+
export function getString(name: string): string | undefined;
|
|
103
103
|
|
|
104
|
-
export
|
|
104
|
+
export function getStrings(): {
|
|
105
105
|
[key: string]: string;
|
|
106
106
|
};
|
|
107
107
|
|
|
108
|
-
export
|
|
108
|
+
export function setStrings(strings: {
|
|
109
109
|
[key: string]: string;
|
|
110
110
|
}): void;
|
|
111
111
|
|
|
@@ -128,7 +128,7 @@ declare module '@ember/string' {
|
|
|
128
128
|
@return {String} the underscored string.
|
|
129
129
|
@public
|
|
130
130
|
*/
|
|
131
|
-
export
|
|
131
|
+
export function underscore(str: string): string;
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
134
|
Splits a string into separate units separated by spaces, eliminating any
|
|
@@ -152,7 +152,7 @@ declare module '@ember/string' {
|
|
|
152
152
|
@return {Array} array containing the split strings
|
|
153
153
|
@public
|
|
154
154
|
*/
|
|
155
|
-
export
|
|
155
|
+
export function w(str: string): string[];
|
|
156
156
|
|
|
157
157
|
export { }
|
|
158
158
|
|