@discourse/types 2026.9.0-c0ef3a11 → 2026.9.0-f7761d48
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 +2 -3
- package/external-types/ember-compat__tracked-built-ins/index.d.ts +12 -23
- package/external-types/ember-modifier/index.d.ts +17 -19
- package/external-types/ember-qunit/index.d.ts +7 -16
- package/external-types/ember-truth-helpers/index.d.ts +33 -33
- package/external-types/ember__render-modifiers/index.d.ts +7 -13
- package/external-types/ember__string/index.d.ts +10 -10
- package/external-types/ember__test-helpers/index.d.ts +155 -185
- package/external-types/floating-ui__dom/index.d.ts +69 -77
- package/external-types/glimmer__component/index.d.ts +10 -18
- package/external-types/glimmer__syntax/index.d.ts +129 -575
- package/external-types/glint__template/index.d.ts +66 -74
- package/external-types/pretender/index.d.ts +2 -2
- package/external-types/rsvp/index.d.ts +0 -4
- package/external-types/sinon/index.d.ts +3 -7
- package/package.json +1 -1
|
@@ -62,8 +62,7 @@ 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
|
|
67
|
-
const I18nInstance: I18n;
|
|
65
|
+
import * as Cardinals from 'make-plural/cardinals';
|
|
66
|
+
import Messages from '@messageformat/runtime/messages'; const I18nInstance: I18n;
|
|
68
67
|
//# sourceMappingURL=index.d.ts.map
|
|
69
68
|
}
|
|
@@ -24,8 +24,7 @@ declare module '@ember-compat/tracked-built-ins/-private/map' {
|
|
|
24
24
|
delete(key: K): boolean;
|
|
25
25
|
// **** ALL SETTERS ****
|
|
26
26
|
clear(): void;
|
|
27
|
-
}
|
|
28
|
-
class TrackedWeakMap<K extends object = object, V = unknown> implements WeakMap<K, V> {
|
|
27
|
+
} class TrackedWeakMap<K extends object = object, V = unknown> implements WeakMap<K, V> {
|
|
29
28
|
private storages;
|
|
30
29
|
private vals;
|
|
31
30
|
private readStorageFor;
|
|
@@ -67,8 +66,7 @@ declare module '@ember-compat/tracked-built-ins/-private/set' {
|
|
|
67
66
|
delete(value: T): boolean;
|
|
68
67
|
// **** ALL SETTERS ****
|
|
69
68
|
clear(): void;
|
|
70
|
-
}
|
|
71
|
-
class TrackedWeakSet<T extends object = object> implements WeakSet<T> {
|
|
69
|
+
} class TrackedWeakSet<T extends object = object> implements WeakSet<T> {
|
|
72
70
|
private storages;
|
|
73
71
|
private vals;
|
|
74
72
|
private storageFor;
|
|
@@ -116,16 +114,9 @@ declare module '@ember-compat/tracked-built-ins/-private/array' {
|
|
|
116
114
|
//# sourceMappingURL=-private/array.d.ts.map
|
|
117
115
|
}
|
|
118
116
|
declare module '@ember-compat/tracked-built-ins/-private/decorator' {
|
|
119
|
-
import { TrackedMap, TrackedWeakMap } from
|
|
120
|
-
import { TrackedSet, TrackedWeakSet } from
|
|
121
|
-
import TrackedArray from
|
|
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;
|
|
117
|
+
import { TrackedMap, TrackedWeakMap } from '@ember-compat/tracked-built-ins/-private/map';
|
|
118
|
+
import { TrackedSet, TrackedWeakSet } from '@ember-compat/tracked-built-ins/-private/set';
|
|
119
|
+
import TrackedArray from '@ember-compat/tracked-built-ins/-private/array'; function tracked<T>(obj: T[] | typeof Array): TrackedArray<T>; function tracked<T>(obj: Set<T> | typeof Set): TrackedSet<T>; function tracked<T, U>(obj: Map<T, U> | typeof Map): TrackedMap<T, U>; function tracked<T extends object>(obj: WeakSet<T> | typeof WeakSet): TrackedWeakSet<T>; function tracked<T extends object, U>(obj: WeakMap<T, U> | typeof WeakMap): TrackedWeakMap<T, U>; function tracked<T extends object>(obj: T | typeof Object): T; function tracked(obj: object, key: string | symbol, desc?: PropertyDescriptor): void;
|
|
129
120
|
export { tracked as default };
|
|
130
121
|
|
|
131
122
|
}
|
|
@@ -148,18 +139,17 @@ declare module '@ember-compat/tracked-built-ins/-private/object' {
|
|
|
148
139
|
*/
|
|
149
140
|
fromEntries<T>(entries: Iterable<readonly [any, T][]>): Record<string, T>;
|
|
150
141
|
new <T extends Record<PropertyKey, unknown> = Record<PropertyKey, unknown>>(obj?: T): T;
|
|
151
|
-
}
|
|
152
|
-
const TrackedObject: TrackedObjectClass;
|
|
142
|
+
} const TrackedObject: TrackedObjectClass;
|
|
153
143
|
type TrackedObject<T = {}> = T;
|
|
154
144
|
export { TrackedObject as default };
|
|
155
145
|
|
|
156
146
|
}
|
|
157
147
|
declare module '@ember-compat/tracked-built-ins' {
|
|
158
|
-
export { default as tracked } from
|
|
159
|
-
export { default as TrackedArray } from
|
|
160
|
-
export { default as TrackedObject } from
|
|
161
|
-
export { TrackedMap, TrackedWeakMap } from
|
|
162
|
-
export { TrackedSet, TrackedWeakSet } from
|
|
148
|
+
export { default as tracked } from '@ember-compat/tracked-built-ins/-private/decorator';
|
|
149
|
+
export { default as TrackedArray } from '@ember-compat/tracked-built-ins/-private/array';
|
|
150
|
+
export { default as TrackedObject } from '@ember-compat/tracked-built-ins/-private/object';
|
|
151
|
+
export { TrackedMap, TrackedWeakMap } from '@ember-compat/tracked-built-ins/-private/map';
|
|
152
|
+
export { TrackedSet, TrackedWeakSet } from '@ember-compat/tracked-built-ins/-private/set';
|
|
163
153
|
|
|
164
154
|
}
|
|
165
155
|
declare module '@ember-compat/tracked-built-ins/-private/property-storage-map' {
|
|
@@ -173,8 +163,7 @@ declare module '@ember-compat/tracked-built-ins/-private/property-storage-map' {
|
|
|
173
163
|
|
|
174
164
|
}
|
|
175
165
|
declare module '@ember-compat/tracked-built-ins/-private/utils' {
|
|
176
|
-
function isAccessorDescriptor(descriptor: PropertyDescriptor): boolean;
|
|
177
|
-
function cloneObjectWithAccessors<T extends Record<PropertyKey, unknown> = Record<PropertyKey, unknown>>(obj: T): T;
|
|
166
|
+
function isAccessorDescriptor(descriptor: PropertyDescriptor): boolean; function cloneObjectWithAccessors<T extends Record<PropertyKey, unknown> = Record<PropertyKey, unknown>>(obj: T): T;
|
|
178
167
|
export { isAccessorDescriptor, cloneObjectWithAccessors };
|
|
179
168
|
|
|
180
169
|
}
|
|
@@ -51,8 +51,7 @@ 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;
|
|
55
|
-
const Empty: unique symbol;
|
|
54
|
+
export type PositionalArgs<S> = 'Args' extends keyof S ? GetOrElse<S['Args'], 'Positional', DefaultPositional> : DefaultPositional; const Empty: unique symbol;
|
|
56
55
|
export interface EmptyObject {
|
|
57
56
|
[Empty]?: true;
|
|
58
57
|
}
|
|
@@ -106,8 +105,7 @@ declare module 'ember-modifier/-private/signature' {
|
|
|
106
105
|
//# sourceMappingURL=signature.d.ts.map
|
|
107
106
|
}
|
|
108
107
|
declare module 'ember-modifier/-private/opaque' {
|
|
109
|
-
const Brand: unique symbol;
|
|
110
|
-
class _Opaque<T> {
|
|
108
|
+
const Brand: unique symbol; class _Opaque<T> {
|
|
111
109
|
private readonly [Brand];
|
|
112
110
|
}
|
|
113
111
|
interface Opaque<T> extends _Opaque<T> {
|
|
@@ -116,9 +114,9 @@ declare module 'ember-modifier/-private/opaque' {
|
|
|
116
114
|
//# sourceMappingURL=opaque.d.ts.map
|
|
117
115
|
}
|
|
118
116
|
declare module 'ember-modifier/-private/class-based/modifier' {
|
|
119
|
-
import type Owner from
|
|
120
|
-
import type { ElementFor, ArgsFor, DefaultSignature, PositionalArgs, NamedArgs } from
|
|
121
|
-
import type Opaque from
|
|
117
|
+
import type Owner from '@ember/owner';
|
|
118
|
+
import type { ElementFor, ArgsFor, DefaultSignature, PositionalArgs, NamedArgs } from 'ember-modifier/-private/signature';
|
|
119
|
+
import type Opaque from 'ember-modifier/-private/opaque';
|
|
122
120
|
export default interface ClassBasedModifier<S = DefaultSignature> extends Opaque<S> {
|
|
123
121
|
}
|
|
124
122
|
/**
|
|
@@ -182,9 +180,9 @@ declare module 'ember-modifier/-private/class-based/modifier' {
|
|
|
182
180
|
//# sourceMappingURL=modifier.d.ts.map
|
|
183
181
|
}
|
|
184
182
|
declare module 'ember-modifier/-private/function-based/modifier' {
|
|
185
|
-
import type { ElementFor, EmptyObject, NamedArgs, PositionalArgs } from
|
|
186
|
-
import type Modifier from
|
|
187
|
-
export
|
|
183
|
+
import type { ElementFor, EmptyObject, NamedArgs, PositionalArgs } from 'ember-modifier/-private/signature';
|
|
184
|
+
import type Modifier from 'ember-modifier/-private/class-based/modifier';
|
|
185
|
+
export abstract class FunctionBasedModifierInstance<S> extends Modifier<S> {
|
|
188
186
|
protected abstract __concrete__: never;
|
|
189
187
|
}
|
|
190
188
|
export type FunctionBasedModifier<S> = abstract new () => FunctionBasedModifierInstance<S>;
|
|
@@ -253,16 +251,16 @@ declare module 'ember-modifier/-private/function-based/modifier' {
|
|
|
253
251
|
//# sourceMappingURL=modifier.d.ts.map
|
|
254
252
|
}
|
|
255
253
|
declare module 'ember-modifier' {
|
|
256
|
-
export { default } from
|
|
257
|
-
export { default as modifier } from
|
|
258
|
-
export type { FunctionBasedModifier } from
|
|
259
|
-
export type { ArgsFor, NamedArgs, PositionalArgs, } from
|
|
254
|
+
export { default } from 'ember-modifier/-private/class-based/modifier';
|
|
255
|
+
export { default as modifier } from 'ember-modifier/-private/function-based/modifier';
|
|
256
|
+
export type { FunctionBasedModifier } from 'ember-modifier/-private/function-based/modifier';
|
|
257
|
+
export type { ArgsFor, NamedArgs, PositionalArgs, } from 'ember-modifier/-private/signature';
|
|
260
258
|
//# sourceMappingURL=index.d.ts.map
|
|
261
259
|
}
|
|
262
260
|
declare module 'ember-modifier/-private/class-based/modifier-manager' {
|
|
263
|
-
import type Owner from
|
|
264
|
-
import type ClassBasedModifier from
|
|
265
|
-
import type { ArgsFor, ElementFor } from
|
|
261
|
+
import type Owner from '@ember/owner';
|
|
262
|
+
import type ClassBasedModifier from 'ember-modifier/-private/class-based/modifier';
|
|
263
|
+
import type { ArgsFor, ElementFor } from 'ember-modifier/-private/signature';
|
|
266
264
|
/**
|
|
267
265
|
* The state bucket used throughout the life-cycle of the modifier. Basically a
|
|
268
266
|
* state *machine*, where the framework calls us with the version we hand back
|
|
@@ -303,8 +301,8 @@ declare module 'ember-modifier/-private/class-based/modifier-manager' {
|
|
|
303
301
|
//# sourceMappingURL=modifier-manager.d.ts.map
|
|
304
302
|
}
|
|
305
303
|
declare module 'ember-modifier/-private/function-based/modifier-manager' {
|
|
306
|
-
import type { FunctionBasedModifierDefinition, Teardown } from
|
|
307
|
-
import type { ArgsFor, ElementFor } from
|
|
304
|
+
import type { FunctionBasedModifierDefinition, Teardown } from 'ember-modifier/-private/function-based/modifier';
|
|
305
|
+
import type { ArgsFor, ElementFor } from 'ember-modifier/-private/signature';
|
|
308
306
|
interface State<S> {
|
|
309
307
|
instance: FunctionBasedModifierDefinition<S>;
|
|
310
308
|
}
|
|
@@ -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,16 +120,7 @@ declare module 'ember-qunit' {
|
|
|
120
120
|
|
|
121
121
|
export function setupEmberOnerrorValidation(): void;
|
|
122
122
|
|
|
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 {
|
|
123
|
+
export function start(options?: QUnitStartOptions): void; global {
|
|
133
124
|
// NOTE: disables `no-unnecessary-generics` inline because, unfortunately,
|
|
134
125
|
// the design of Ember's test tooling (and indeed *QUnit's* test system)
|
|
135
126
|
// requires that we allow users to update the type of the context of the
|
|
@@ -284,8 +275,8 @@ declare module 'ember-qunit' {
|
|
|
284
275
|
|
|
285
276
|
}
|
|
286
277
|
declare module 'ember-qunit/local-types' {
|
|
287
|
-
import
|
|
288
|
-
import
|
|
278
|
+
import 'ember-source/types';
|
|
279
|
+
import 'ember-source/types/preview';
|
|
289
280
|
|
|
290
281
|
}
|
|
291
282
|
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,9 +12,7 @@ declare module '@ember/render-modifiers/-private' {
|
|
|
12
12
|
|
|
13
13
|
}
|
|
14
14
|
declare module '@ember/render-modifiers/modifiers/did-insert' {
|
|
15
|
-
import { RenderModifier } from
|
|
16
|
-
|
|
17
|
-
const didInsert: abstract new <
|
|
15
|
+
import { RenderModifier } from '@ember/render-modifiers/-private'; const didInsert: abstract new <
|
|
18
16
|
El extends Element,
|
|
19
17
|
Args extends Array<any>
|
|
20
18
|
>() => RenderModifier<El, Args>;
|
|
@@ -23,9 +21,7 @@ declare module '@ember/render-modifiers/modifiers/did-insert' {
|
|
|
23
21
|
|
|
24
22
|
}
|
|
25
23
|
declare module '@ember/render-modifiers/modifiers/did-update' {
|
|
26
|
-
import { RenderModifier } from
|
|
27
|
-
|
|
28
|
-
const didUpdate: abstract new <
|
|
24
|
+
import { RenderModifier } from '@ember/render-modifiers/-private'; const didUpdate: abstract new <
|
|
29
25
|
El extends Element,
|
|
30
26
|
Args extends Array<any>
|
|
31
27
|
>() => RenderModifier<El, Args>;
|
|
@@ -34,9 +30,7 @@ declare module '@ember/render-modifiers/modifiers/did-update' {
|
|
|
34
30
|
|
|
35
31
|
}
|
|
36
32
|
declare module '@ember/render-modifiers/modifiers/will-destroy' {
|
|
37
|
-
import { RenderModifier } from
|
|
38
|
-
|
|
39
|
-
const willDestroy: abstract new <
|
|
33
|
+
import { RenderModifier } from '@ember/render-modifiers/-private'; const willDestroy: abstract new <
|
|
40
34
|
El extends Element,
|
|
41
35
|
Args extends Array<any>
|
|
42
36
|
>() => RenderModifier<El, Args>;
|
|
@@ -45,9 +39,9 @@ declare module '@ember/render-modifiers/modifiers/will-destroy' {
|
|
|
45
39
|
|
|
46
40
|
}
|
|
47
41
|
declare module '@ember/render-modifiers/template-registry' {
|
|
48
|
-
import type didInsert from
|
|
49
|
-
import type didUpdate from
|
|
50
|
-
import type willDestroy from
|
|
42
|
+
import type didInsert from '@ember/render-modifiers/modifiers/did-insert';
|
|
43
|
+
import type didUpdate from '@ember/render-modifiers/modifiers/did-update';
|
|
44
|
+
import type willDestroy from '@ember/render-modifiers/modifiers/will-destroy';
|
|
51
45
|
|
|
52
46
|
export default interface RenderModifiersRegistry {
|
|
53
47
|
'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
|
|