@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
|
@@ -16,15 +16,19 @@ declare module '@glint/template/-private/integration' {
|
|
|
16
16
|
/** The loosest shape of a "blocks hash" */
|
|
17
17
|
export type AnyBlocks = Partial<Record<string, any[]>>;
|
|
18
18
|
|
|
19
|
-
export
|
|
19
|
+
export const InvokeDirect: unique symbol;
|
|
20
20
|
export type DirectInvokable<T extends AnyFunction = AnyFunction> = { [InvokeDirect]: T };
|
|
21
21
|
|
|
22
|
-
export
|
|
22
|
+
export const Invoke: unique symbol;
|
|
23
23
|
export type InvokableInstance<T extends AnyFunction = AnyFunction> = { [Invoke]: T };
|
|
24
24
|
export type Invokable<F extends AnyFunction> = abstract new (...args: any) => InvokableInstance<F>;
|
|
25
25
|
|
|
26
|
-
export
|
|
27
|
-
export type HasContext<T extends AnyContext = AnyContext> = { [Context]: T };
|
|
26
|
+
export const Context: unique symbol;
|
|
27
|
+
export type HasContext<T extends AnyContext = AnyContext> = { [Context]: T };
|
|
28
|
+
|
|
29
|
+
const Element: unique symbol;
|
|
30
|
+
const Modifier: unique symbol;
|
|
31
|
+
const Blocks: unique symbol;
|
|
28
32
|
|
|
29
33
|
/** Denotes a modifier whose arguments have been bound and is ready to be attached to an element. */
|
|
30
34
|
export type ModifierReturn = { [Modifier]: true };
|
|
@@ -65,7 +69,7 @@ declare module '@glint/template/-private/integration' {
|
|
|
65
69
|
// This trio of declarations allows us to distinguish explicit named
|
|
66
70
|
// argument invocation from "final positional argument is a hash"
|
|
67
71
|
// situations.
|
|
68
|
-
export
|
|
72
|
+
export const NamedArgs: unique symbol;
|
|
69
73
|
export type NamedArgs<T> = T & NamedArgsMarker;
|
|
70
74
|
export interface NamedArgsMarker {
|
|
71
75
|
[NamedArgs]: true;
|
|
@@ -90,7 +94,7 @@ declare module '@glint/template/-private/signature' {
|
|
|
90
94
|
// in userspace into our internal representation of an invokable's
|
|
91
95
|
// function type signature.
|
|
92
96
|
|
|
93
|
-
import { NamedArgs, UnwrapNamedArgs } from
|
|
97
|
+
import { NamedArgs, UnwrapNamedArgs } from '@glint/template/-private/integration';
|
|
94
98
|
|
|
95
99
|
/**
|
|
96
100
|
* Given an "args hash" (e.g. `{ Named: {...}; Positional: [...] }`),
|
|
@@ -203,7 +207,7 @@ declare module '@glint/template' {
|
|
|
203
207
|
Invokable,
|
|
204
208
|
NamedArgNames,
|
|
205
209
|
UnwrapNamedArgs,
|
|
206
|
-
} from
|
|
210
|
+
} from '@glint/template/-private/integration';
|
|
207
211
|
import {
|
|
208
212
|
ComponentSignatureArgs,
|
|
209
213
|
ComponentSignatureBlocks,
|
|
@@ -213,7 +217,7 @@ declare module '@glint/template' {
|
|
|
213
217
|
MaybeNamed,
|
|
214
218
|
PrebindArgs,
|
|
215
219
|
SliceFrom,
|
|
216
|
-
} from
|
|
220
|
+
} from '@glint/template/-private/signature';
|
|
217
221
|
|
|
218
222
|
/**
|
|
219
223
|
* Any value that can be safely emitted into the DOM as top-level content,
|
|
@@ -385,7 +389,9 @@ declare module '@glint/template/-private/dsl/elements' {
|
|
|
385
389
|
// Auto-generated by bin/build-elements.mjs
|
|
386
390
|
// this server to provide the html attributes for each element
|
|
387
391
|
|
|
388
|
-
import { AttrValue } from
|
|
392
|
+
import { AttrValue } from '@glint/template';
|
|
393
|
+
|
|
394
|
+
global {
|
|
389
395
|
interface GlobalAriaAttributes {
|
|
390
396
|
['aria-activedescendant']: AttrValue;
|
|
391
397
|
['aria-atomic']: AttrValue;
|
|
@@ -1079,7 +1085,9 @@ declare module '@glint/template/-private/dsl/elements' {
|
|
|
1079
1085
|
['HTMLUListElement']: HTMLUListElementAttributes;
|
|
1080
1086
|
['HTMLVideoElement']: HTMLVideoElementAttributes;
|
|
1081
1087
|
}
|
|
1082
|
-
}
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
global {
|
|
1083
1091
|
interface GlobalSVGAttributes extends GlobalHTMLAttributes {
|
|
1084
1092
|
['about']: AttrValue;
|
|
1085
1093
|
['class']: AttrValue;
|
|
@@ -4915,9 +4923,9 @@ declare module '@glint/template/-private/dsl/lib.dom.augmentation' {
|
|
|
4915
4923
|
|
|
4916
4924
|
}
|
|
4917
4925
|
declare module '@glint/template/-private/dsl/types' {
|
|
4918
|
-
import
|
|
4919
|
-
import { AttrValue } from
|
|
4920
|
-
import type { HTMLElementMap, SVGElementMap } from
|
|
4926
|
+
import '@glint/template/-private/dsl/elements';
|
|
4927
|
+
import { AttrValue } from '@glint/template';
|
|
4928
|
+
import type { HTMLElementMap, SVGElementMap } from '@glint/template/-private/dsl/lib.dom.augmentation';
|
|
4921
4929
|
|
|
4922
4930
|
/**
|
|
4923
4931
|
* A utility for constructing the type of an environment's `resolveOrReturn` from
|
|
@@ -4978,7 +4986,7 @@ declare module '@glint/template/-private/dsl/types' {
|
|
|
4978
4986
|
|
|
4979
4987
|
}
|
|
4980
4988
|
declare module '@glint/template/-private/dsl/emit' {
|
|
4981
|
-
import { AttrValue, ContentValue } from
|
|
4989
|
+
import { AttrValue, ContentValue } from '-private';
|
|
4982
4990
|
import {
|
|
4983
4991
|
ComponentReturn,
|
|
4984
4992
|
AnyContext,
|
|
@@ -4989,21 +4997,21 @@ declare module '@glint/template/-private/dsl/emit' {
|
|
|
4989
4997
|
TemplateContext,
|
|
4990
4998
|
Invokable,
|
|
4991
4999
|
NamedArgs,
|
|
4992
|
-
} from
|
|
5000
|
+
} from '@glint/template/-private/integration';
|
|
4993
5001
|
import {
|
|
4994
5002
|
AttributesForElement,
|
|
4995
5003
|
ElementForTagName,
|
|
4996
5004
|
MathMlElementForTagName,
|
|
4997
5005
|
SVGElementForTagName,
|
|
4998
|
-
} from
|
|
4999
|
-
import { MaybeNamed, PrebindArgs, UnionKeysOf } from
|
|
5006
|
+
} from '@glint/template/-private/dsl/types';
|
|
5007
|
+
import { MaybeNamed, PrebindArgs, UnionKeysOf } from '@glint/template/-private/signature';
|
|
5000
5008
|
|
|
5001
5009
|
/**
|
|
5002
5010
|
* Used during emit to denote an object literal that corresponds
|
|
5003
5011
|
* to the use of named args rather than passing an object value
|
|
5004
5012
|
* directly.
|
|
5005
5013
|
*/
|
|
5006
|
-
export
|
|
5014
|
+
export const NamedArgsMarker: NamedArgs<unknown>;
|
|
5007
5015
|
|
|
5008
5016
|
/*
|
|
5009
5017
|
* Emits the given value as top-level content to the DOM. This:
|
|
@@ -5014,7 +5022,7 @@ declare module '@glint/template/-private/dsl/emit' {
|
|
|
5014
5022
|
*
|
|
5015
5023
|
* emitContent(resolveOrReturn(value)({}))
|
|
5016
5024
|
*/
|
|
5017
|
-
export
|
|
5025
|
+
export function emitContent(value: ContentValue): void;
|
|
5018
5026
|
|
|
5019
5027
|
/*
|
|
5020
5028
|
* Emits an element of the given name, providing a value to the
|
|
@@ -5031,7 +5039,7 @@ declare module '@glint/template/-private/dsl/emit' {
|
|
|
5031
5039
|
* applyModifier(__glintY__.element, resolve(on)({}, 'click', this.clicked));
|
|
5032
5040
|
* });
|
|
5033
5041
|
*/
|
|
5034
|
-
export
|
|
5042
|
+
export function emitElement<Name extends string | 'math' | 'svg'>(
|
|
5035
5043
|
name: Name,
|
|
5036
5044
|
): {
|
|
5037
5045
|
element: Name extends 'math'
|
|
@@ -5041,11 +5049,11 @@ declare module '@glint/template/-private/dsl/emit' {
|
|
|
5041
5049
|
: ElementForTagName<Name>;
|
|
5042
5050
|
};
|
|
5043
5051
|
|
|
5044
|
-
export
|
|
5052
|
+
export function emitSVGElement<Name extends keyof SVGElementTagNameMap>(
|
|
5045
5053
|
name: Name,
|
|
5046
5054
|
): { element: SVGElementForTagName<Name> };
|
|
5047
5055
|
|
|
5048
|
-
export
|
|
5056
|
+
export function emitMathMlElement<Name extends keyof MathMLElementTagNameMap>(
|
|
5049
5057
|
name: Name,
|
|
5050
5058
|
): { element: MathMlElementForTagName<Name> };
|
|
5051
5059
|
|
|
@@ -5065,7 +5073,7 @@ declare module '@glint/template/-private/dsl/emit' {
|
|
|
5065
5073
|
* applyModifier(__glintY__.element, resolve(baz)({}));
|
|
5066
5074
|
* });
|
|
5067
5075
|
*/
|
|
5068
|
-
export
|
|
5076
|
+
export function emitComponent<T extends ComponentReturn<any, any>>(
|
|
5069
5077
|
component: T,
|
|
5070
5078
|
): {
|
|
5071
5079
|
element: T extends ComponentReturn<any, infer El> ? El : any;
|
|
@@ -5079,7 +5087,7 @@ declare module '@glint/template/-private/dsl/emit' {
|
|
|
5079
5087
|
* The given callback accepts a template context value as well as an instance of the
|
|
5080
5088
|
* environment's DSL export.
|
|
5081
5089
|
*/
|
|
5082
|
-
export
|
|
5090
|
+
export function templateExpression<
|
|
5083
5091
|
Signature extends AnyFunction = () => ComponentReturn<{}>,
|
|
5084
5092
|
Context extends AnyContext = TemplateContext<void, {}, {}, void>,
|
|
5085
5093
|
>(
|
|
@@ -5099,7 +5107,7 @@ declare module '@glint/template/-private/dsl/emit' {
|
|
|
5099
5107
|
* value are necessary for this, despite the fact that we don't actually do anything with those
|
|
5100
5108
|
* types (see https://github.com/microsoft/TypeScript/pull/30215).
|
|
5101
5109
|
*/
|
|
5102
|
-
export
|
|
5110
|
+
export function templateForBackingValue<Args extends unknown[], Context extends AnyContext>(
|
|
5103
5111
|
backingValue: abstract new (...args: Args) => HasContext<Context>,
|
|
5104
5112
|
body: (__glintRef__: Context, __glintDSL__: never) => void,
|
|
5105
5113
|
): abstract new () => unknown;
|
|
@@ -5113,7 +5121,7 @@ declare module '@glint/template/-private/dsl/emit' {
|
|
|
5113
5121
|
*
|
|
5114
5122
|
* yieldToBlock(__glintRef__, 'name')(foo, bar);
|
|
5115
5123
|
*/
|
|
5116
|
-
export
|
|
5124
|
+
export function yieldToBlock<Context extends AnyContext, K extends keyof Context['blocks']>(
|
|
5117
5125
|
__glintRef__: Context,
|
|
5118
5126
|
to: K,
|
|
5119
5127
|
): (...values: NonNullable<Context['blocks'][K]>) => void;
|
|
@@ -5125,7 +5133,7 @@ declare module '@glint/template/-private/dsl/emit' {
|
|
|
5125
5133
|
* <div ...attributes></div>
|
|
5126
5134
|
* <AnotherComponent ...attributes />
|
|
5127
5135
|
*/
|
|
5128
|
-
export
|
|
5136
|
+
export function applySplattributes<
|
|
5129
5137
|
SourceElement extends Element,
|
|
5130
5138
|
TargetElement extends SourceElement,
|
|
5131
5139
|
>(source: SourceElement, target: TargetElement): void;
|
|
@@ -5136,7 +5144,7 @@ declare module '@glint/template/-private/dsl/emit' {
|
|
|
5136
5144
|
* <div foo={{bar}}></div>
|
|
5137
5145
|
* <AnotherComponent foo={{bar}} />
|
|
5138
5146
|
*/
|
|
5139
|
-
export
|
|
5147
|
+
export function applyAttributes<T extends Element>(
|
|
5140
5148
|
element: T,
|
|
5141
5149
|
attrs: Partial<AttributesForElement<T>>,
|
|
5142
5150
|
): void;
|
|
@@ -5147,14 +5155,14 @@ declare module '@glint/template/-private/dsl/emit' {
|
|
|
5147
5155
|
* <div {{someModifier}}></div>
|
|
5148
5156
|
* <AnotherComponent {{someModifier}} />
|
|
5149
5157
|
*/
|
|
5150
|
-
export
|
|
5158
|
+
export function applyModifier(boundModifier: ModifierReturn): void;
|
|
5151
5159
|
|
|
5152
5160
|
/*
|
|
5153
5161
|
* Used to consume imported identifiers like `hash` or `array` when
|
|
5154
5162
|
* we treat them as a special form to be translated into native
|
|
5155
5163
|
* syntax.
|
|
5156
5164
|
*/
|
|
5157
|
-
export
|
|
5165
|
+
export function noop(value: unknown): void;
|
|
5158
5166
|
|
|
5159
5167
|
/*
|
|
5160
5168
|
* Pre-binds named args while preserving generic type parameters (#1068).
|
|
@@ -5180,15 +5188,15 @@ declare module '@glint/template/-private/dsl/emit' {
|
|
|
5180
5188
|
) => T
|
|
5181
5189
|
: (...args: Args extends unknown[] ? Args : never) => T;
|
|
5182
5190
|
|
|
5183
|
-
export
|
|
5191
|
+
export function bindInvokable<Args extends unknown[], T, GivenNamed>(
|
|
5184
5192
|
invokable: (...args: Args) => T,
|
|
5185
5193
|
named: NamedArgs<GivenNamed>,
|
|
5186
5194
|
): Invokable<BindNamedResult<Args, T, GivenNamed>>;
|
|
5187
5195
|
|
|
5188
5196
|
}
|
|
5189
5197
|
declare module '@glint/template/-private/dsl/resolve' {
|
|
5190
|
-
import { DirectInvokable, InvokableInstance, Invoke, InvokeDirect } from
|
|
5191
|
-
import { ResolveOrReturn } from
|
|
5198
|
+
import { DirectInvokable, InvokableInstance, Invoke, InvokeDirect } from '@glint/template/-private/integration';
|
|
5199
|
+
import { ResolveOrReturn } from '@glint/template/-private/dsl/types';
|
|
5192
5200
|
|
|
5193
5201
|
/*
|
|
5194
5202
|
* We have multiple ways of representing invokable values, dictated by certain constraints
|
|
@@ -5220,8 +5228,8 @@ declare module '@glint/template/-private/dsl/resolve' {
|
|
|
5220
5228
|
* own particular resolution semantics.
|
|
5221
5229
|
*/
|
|
5222
5230
|
|
|
5223
|
-
export
|
|
5224
|
-
export
|
|
5231
|
+
export function resolve<T extends DirectInvokable>(item: T): T[typeof InvokeDirect];
|
|
5232
|
+
export function resolve<Args extends unknown[], Instance extends InvokableInstance>(
|
|
5225
5233
|
item: (abstract new (...args: Args) => Instance) | null | undefined,
|
|
5226
5234
|
): (...args: Parameters<Instance[typeof Invoke]>) => ReturnType<Instance[typeof Invoke]>;
|
|
5227
5235
|
|
|
@@ -5235,7 +5243,7 @@ declare module '@glint/template/-private/dsl/resolve' {
|
|
|
5235
5243
|
* value of the appropriate type.
|
|
5236
5244
|
*/
|
|
5237
5245
|
|
|
5238
|
-
export
|
|
5246
|
+
export const resolveOrReturn: ResolveOrReturn<typeof resolve>;
|
|
5239
5247
|
|
|
5240
5248
|
/*
|
|
5241
5249
|
* Binding helpers like `{{component}}` and `{{helper}}` accept a variety of possible
|
|
@@ -5246,11 +5254,11 @@ declare module '@glint/template/-private/dsl/resolve' {
|
|
|
5246
5254
|
* with invokables whose signatures include type parameters.
|
|
5247
5255
|
*/
|
|
5248
5256
|
|
|
5249
|
-
export
|
|
5250
|
-
export
|
|
5257
|
+
export function resolveForBind<T extends DirectInvokable>(item: T): T[typeof InvokeDirect];
|
|
5258
|
+
export function resolveForBind<Args extends unknown[], Instance extends InvokableInstance>(
|
|
5251
5259
|
item: abstract new (...args: Args) => Instance,
|
|
5252
5260
|
): (...args: Parameters<Instance[typeof Invoke]>) => ReturnType<Instance[typeof Invoke]>;
|
|
5253
|
-
export
|
|
5261
|
+
export function resolveForBind<Args extends unknown[], Instance extends InvokableInstance>(
|
|
5254
5262
|
item: null | undefined | (abstract new (...args: Args) => Instance),
|
|
5255
5263
|
): null | ((...args: Parameters<Instance[typeof Invoke]>) => ReturnType<Instance[typeof Invoke]>);
|
|
5256
5264
|
|
|
@@ -5260,14 +5268,14 @@ declare module '@glint/template/-private/dsl' {
|
|
|
5260
5268
|
// the output of `ember-tsc`'s transform layer. It comprises the
|
|
5261
5269
|
// basis from which environments construct their exports.
|
|
5262
5270
|
|
|
5263
|
-
export * from
|
|
5264
|
-
export * from
|
|
5265
|
-
export * from
|
|
5271
|
+
export * from '@glint/template/-private/dsl/emit';
|
|
5272
|
+
export * from '@glint/template/-private/dsl/resolve';
|
|
5273
|
+
export * from '@glint/template/-private/dsl/types';
|
|
5266
5274
|
|
|
5267
5275
|
}
|
|
5268
5276
|
declare module '@glint/template/-private/keywords/-bind-invokable' {
|
|
5269
|
-
import { DirectInvokable, Invokable, NamedArgs } from
|
|
5270
|
-
import { MaybeNamed, PrebindArgs, SliceFrom, SliceTo, UnionKeysOf } from
|
|
5277
|
+
import { DirectInvokable, Invokable, NamedArgs } from '@glint/template/-private/integration';
|
|
5278
|
+
import { MaybeNamed, PrebindArgs, SliceFrom, SliceTo, UnionKeysOf } from '@glint/template/-private/signature';
|
|
5271
5279
|
|
|
5272
5280
|
type PrefixOf<T extends unknown[]> = T extends [arg: infer Arg, ...rest: infer Rest]
|
|
5273
5281
|
? [] | [Arg, ...PrefixOf<Rest>]
|
|
@@ -5356,20 +5364,20 @@ declare module '@glint/template/-private/keywords/-bind-invokable' {
|
|
|
5356
5364
|
|
|
5357
5365
|
}
|
|
5358
5366
|
declare module '@glint/template/-private/keywords/component' {
|
|
5359
|
-
import { ComponentReturn } from
|
|
5360
|
-
import { BindInvokableKeyword } from
|
|
5367
|
+
import { ComponentReturn } from '@glint/template/-private/integration';
|
|
5368
|
+
import { BindInvokableKeyword } from '@glint/template/-private/keywords/-bind-invokable';
|
|
5361
5369
|
|
|
5362
5370
|
export type ComponentKeyword = BindInvokableKeyword<0, ComponentReturn<any, any>>;
|
|
5363
5371
|
|
|
5364
5372
|
}
|
|
5365
5373
|
declare module '@glint/template/-private/keywords/debugger' {
|
|
5366
|
-
import { HelperLike } from
|
|
5374
|
+
import { HelperLike } from '@glint/template';
|
|
5367
5375
|
|
|
5368
5376
|
export interface DebuggerKeyword extends HelperLike<{ Return: void }> {}
|
|
5369
5377
|
|
|
5370
5378
|
}
|
|
5371
5379
|
declare module '@glint/template/-private/keywords/each' {
|
|
5372
|
-
import { ComponentLike } from
|
|
5380
|
+
import { ComponentLike } from '@glint/template';
|
|
5373
5381
|
|
|
5374
5382
|
type ArrayLike<T> = ReadonlyArray<T> | Iterable<T>;
|
|
5375
5383
|
|
|
@@ -5388,7 +5396,7 @@ declare module '@glint/template/-private/keywords/each' {
|
|
|
5388
5396
|
|
|
5389
5397
|
}
|
|
5390
5398
|
declare module '@glint/template/-private/keywords/has-block' {
|
|
5391
|
-
import { HelperLike } from
|
|
5399
|
+
import { HelperLike } from '@glint/template';
|
|
5392
5400
|
|
|
5393
5401
|
export type HasBlockKeyword = HelperLike<{
|
|
5394
5402
|
Args: { Positional: [blockName?: string] };
|
|
@@ -5397,7 +5405,7 @@ declare module '@glint/template/-private/keywords/has-block' {
|
|
|
5397
5405
|
|
|
5398
5406
|
}
|
|
5399
5407
|
declare module '@glint/template/-private/keywords/has-block-params' {
|
|
5400
|
-
import { HelperLike } from
|
|
5408
|
+
import { HelperLike } from '@glint/template';
|
|
5401
5409
|
|
|
5402
5410
|
export type HasBlockParamsKeyword = HelperLike<{
|
|
5403
5411
|
Args: { Positional: [blockName?: string] };
|
|
@@ -5406,13 +5414,13 @@ declare module '@glint/template/-private/keywords/has-block-params' {
|
|
|
5406
5414
|
|
|
5407
5415
|
}
|
|
5408
5416
|
declare module '@glint/template/-private/keywords/helper' {
|
|
5409
|
-
import { BindInvokableKeyword } from
|
|
5417
|
+
import { BindInvokableKeyword } from '@glint/template/-private/keywords/-bind-invokable';
|
|
5410
5418
|
|
|
5411
5419
|
export type HelperKeyword = BindInvokableKeyword<0, any>;
|
|
5412
5420
|
|
|
5413
5421
|
}
|
|
5414
5422
|
declare module '@glint/template/-private/keywords/in-element' {
|
|
5415
|
-
import { ComponentLike } from
|
|
5423
|
+
import { ComponentLike } from '@glint/template';
|
|
5416
5424
|
|
|
5417
5425
|
export type InElementKeyword = ComponentLike<{
|
|
5418
5426
|
Args: {
|
|
@@ -5428,7 +5436,7 @@ declare module '@glint/template/-private/keywords/in-element' {
|
|
|
5428
5436
|
|
|
5429
5437
|
}
|
|
5430
5438
|
declare module '@glint/template/-private/keywords/let' {
|
|
5431
|
-
import { ComponentReturn, DirectInvokable } from
|
|
5439
|
+
import { ComponentReturn, DirectInvokable } from '@glint/template/-private/integration';
|
|
5432
5440
|
|
|
5433
5441
|
export type LetKeyword = DirectInvokable<{
|
|
5434
5442
|
<T extends unknown[]>(
|
|
@@ -5440,14 +5448,14 @@ declare module '@glint/template/-private/keywords/let' {
|
|
|
5440
5448
|
|
|
5441
5449
|
}
|
|
5442
5450
|
declare module '@glint/template/-private/keywords/modifier' {
|
|
5443
|
-
import { ModifierReturn } from
|
|
5444
|
-
import { BindInvokableKeyword } from
|
|
5451
|
+
import { ModifierReturn } from '@glint/template/-private/integration';
|
|
5452
|
+
import { BindInvokableKeyword } from '@glint/template/-private/keywords/-bind-invokable';
|
|
5445
5453
|
|
|
5446
5454
|
export type ModifierKeyword = BindInvokableKeyword<1, ModifierReturn>;
|
|
5447
5455
|
|
|
5448
5456
|
}
|
|
5449
5457
|
declare module '@glint/template/-private/keywords/with' {
|
|
5450
|
-
import { ComponentLike } from
|
|
5458
|
+
import { ComponentLike } from '@glint/template';
|
|
5451
5459
|
|
|
5452
5460
|
export type WithKeyword = abstract new <T>() => InstanceType<
|
|
5453
5461
|
ComponentLike<{
|
|
@@ -5463,15 +5471,15 @@ declare module '@glint/template/-private/keywords/with' {
|
|
|
5463
5471
|
|
|
5464
5472
|
}
|
|
5465
5473
|
declare module '@glint/template/-private/keywords' {
|
|
5466
|
-
export { ComponentKeyword } from
|
|
5467
|
-
export { DebuggerKeyword } from
|
|
5468
|
-
export { EachKeyword } from
|
|
5469
|
-
export { HasBlockKeyword } from
|
|
5470
|
-
export { HasBlockParamsKeyword } from
|
|
5471
|
-
export { HelperKeyword } from
|
|
5472
|
-
export { InElementKeyword } from
|
|
5473
|
-
export { LetKeyword } from
|
|
5474
|
-
export { ModifierKeyword } from
|
|
5475
|
-
export { WithKeyword } from
|
|
5474
|
+
export { ComponentKeyword } from '@glint/template/-private/keywords/component';
|
|
5475
|
+
export { DebuggerKeyword } from '@glint/template/-private/keywords/debugger';
|
|
5476
|
+
export { EachKeyword } from '@glint/template/-private/keywords/each';
|
|
5477
|
+
export { HasBlockKeyword } from '@glint/template/-private/keywords/has-block';
|
|
5478
|
+
export { HasBlockParamsKeyword } from '@glint/template/-private/keywords/has-block-params';
|
|
5479
|
+
export { HelperKeyword } from '@glint/template/-private/keywords/helper';
|
|
5480
|
+
export { InElementKeyword } from '@glint/template/-private/keywords/in-element';
|
|
5481
|
+
export { LetKeyword } from '@glint/template/-private/keywords/let';
|
|
5482
|
+
export { ModifierKeyword } from '@glint/template/-private/keywords/modifier';
|
|
5483
|
+
export { WithKeyword } from '@glint/template/-private/keywords/with';
|
|
5476
5484
|
|
|
5477
5485
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare module 'pretender' {
|
|
2
|
-
import FakeXMLHttpRequest from
|
|
3
|
-
import { Params, QueryParams } from
|
|
2
|
+
import FakeXMLHttpRequest from 'fake-xml-http-request';
|
|
3
|
+
import { Params, QueryParams } from 'route-recognizer';
|
|
4
4
|
|
|
5
5
|
type SetupCallback = (this: Server) => void;
|
|
6
6
|
interface SetupConfig {
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
declare module 'rsvp' {
|
|
2
|
+
// These types are derived in large part from the Microsoft-supplied types for
|
|
3
|
+
// ES2015 Promises. They have been tweaked to support RSVP's extensions to the
|
|
4
|
+
// Promises A+ spec and the additional helper functions it supplies.
|
|
5
|
+
|
|
2
6
|
namespace RSVP {
|
|
3
7
|
// All the Promise methods essentially flatten existing promises, so that
|
|
4
8
|
// you don't end up with `Promise<Promise<Promise<string>>>` if you happen
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
declare module 'sinon' {
|
|
2
|
-
import * as FakeTimers from
|
|
2
|
+
import * as FakeTimers from '@sinonjs/fake-timers';
|
|
3
3
|
|
|
4
4
|
// sinon uses DOM dependencies which are absent in browser-less environment like node.js
|
|
5
5
|
// to avoid compiler errors this monkey patch is used
|
|
6
6
|
// see more details in https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11351
|
|
7
7
|
interface Event {} // eslint-disable-line @typescript-eslint/no-empty-interface
|
|
8
|
-
interface Document {}
|
|
8
|
+
interface Document {} // eslint-disable-line @typescript-eslint/no-empty-interface
|
|
9
|
+
|
|
10
|
+
namespace Sinon {
|
|
9
11
|
type MatchPartialArguments<T> = {
|
|
10
12
|
[K in keyof T]?: SinonMatcher | (T[K] extends object ? MatchPartialArguments<T[K]> : T[K]);
|
|
11
13
|
};
|
|
@@ -1462,7 +1464,9 @@ declare module 'sinon' {
|
|
|
1462
1464
|
}
|
|
1463
1465
|
|
|
1464
1466
|
type SinonStatic = SinonSandbox & SinonApi;
|
|
1465
|
-
}
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
const Sinon: Sinon.SinonStatic;
|
|
1466
1470
|
|
|
1467
1471
|
export = Sinon;
|
|
1468
1472
|
export as namespace sinon;
|