@glint/ember-tsc 1.0.3-unstable.8302223 → 1.0.3-unstable.c38e04e
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glint/ember-tsc",
|
|
3
|
-
"version": "1.0.3-unstable.
|
|
3
|
+
"version": "1.0.3-unstable.c38e04e",
|
|
4
4
|
"repository": "typed-ember/glint",
|
|
5
5
|
"description": "A CLI for performing typechecking on Glimmer templates",
|
|
6
6
|
"license": "MIT",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@glimmer/syntax": ">= 0.95.0",
|
|
65
|
-
"@glint/template": "1.6.2-unstable.
|
|
65
|
+
"@glint/template": "1.6.2-unstable.c38e04e",
|
|
66
66
|
"@volar/kit": "2.4.23",
|
|
67
67
|
"@volar/language-core": "2.4.23",
|
|
68
68
|
"@volar/language-server": "2.4.23",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@glimmer/component": "^2.0.0",
|
|
88
|
-
"@glint/type-test": "2.0.1-unstable.
|
|
88
|
+
"@glint/type-test": "2.0.1-unstable.c38e04e",
|
|
89
89
|
"@types/common-tags": "^1.8.0",
|
|
90
90
|
"@types/node": "^18.11.5",
|
|
91
91
|
"@types/semver": "^7.3.13",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// This module is responsible for augmenting the upstream definitions of entities that interact
|
|
2
2
|
// with templates to include the information necessary for Glint to typecheck them.
|
|
3
3
|
|
|
4
|
-
import { ComponentLike, HelperLike, ModifierLike } from '@glint/template';
|
|
5
|
-
import {
|
|
4
|
+
import type { ComponentLike, HelperLike, ModifierLike } from '@glint/template';
|
|
5
|
+
import type {
|
|
6
6
|
Context,
|
|
7
7
|
FlattenBlockParams,
|
|
8
8
|
HasContext,
|
|
9
9
|
TemplateContext,
|
|
10
10
|
} from '@glint/template/-private/integration';
|
|
11
|
-
import {
|
|
11
|
+
import type {
|
|
12
12
|
ComponentSignatureArgs,
|
|
13
13
|
ComponentSignatureBlocks,
|
|
14
14
|
ComponentSignatureElement,
|
|
@@ -34,8 +34,8 @@ declare module '@glimmer/component' {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
import { InputComponent as ImportedInputComponent } from '../intrinsics/input';
|
|
38
|
-
import { TextareaComponent as ImportedTextareaComponent } from '../intrinsics/textarea';
|
|
37
|
+
import type { InputComponent as ImportedInputComponent } from '../intrinsics/input';
|
|
38
|
+
import type { TextareaComponent as ImportedTextareaComponent } from '../intrinsics/textarea';
|
|
39
39
|
declare module '@ember/component' {
|
|
40
40
|
export default interface Component<S> extends InstanceType<ComponentLike<S>> {
|
|
41
41
|
[Context]: ComponentContext<this, S>;
|
|
@@ -78,8 +78,8 @@ declare module 'ember-modifier' {
|
|
|
78
78
|
//////////////////////////////////////////////////////////////////////
|
|
79
79
|
// Routes and Controllers
|
|
80
80
|
|
|
81
|
-
import Controller from '@ember/controller';
|
|
82
|
-
import Route from '@ember/routing/route';
|
|
81
|
+
import type Controller from '@ember/controller';
|
|
82
|
+
import type Route from '@ember/routing/route';
|
|
83
83
|
|
|
84
84
|
type ModelForRoute<T extends Route> = Awaited<ReturnType<T['model']>>;
|
|
85
85
|
type ModelField<T> = { model: T };
|
|
@@ -101,7 +101,7 @@ declare module '@ember/controller' {
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
import { LinkToComponent } from '../intrinsics/link-to';
|
|
104
|
+
import type { LinkToComponent } from '../intrinsics/link-to';
|
|
105
105
|
declare module '@ember/routing' {
|
|
106
106
|
export interface LinkTo extends LinkToComponent {}
|
|
107
107
|
}
|
|
@@ -110,7 +110,6 @@ declare module '@ember/routing' {
|
|
|
110
110
|
// Rendering Tests
|
|
111
111
|
|
|
112
112
|
import '@ember/test-helpers';
|
|
113
|
-
import 'ember-cli-htmlbars';
|
|
114
113
|
|
|
115
114
|
type TestTemplate<T> = abstract new () => HasContext<TemplateContext<T, {}, {}, void>>;
|
|
116
115
|
|
|
@@ -118,23 +117,16 @@ declare module '@ember/test-helpers' {
|
|
|
118
117
|
export function render<T>(template: TestTemplate<T>): Promise<void>;
|
|
119
118
|
}
|
|
120
119
|
|
|
121
|
-
// Declaring that `TemplateFactory` is a valid `TestTemplate` prevents vanilla `tsc` from freaking out
|
|
122
|
-
// about `hbs` not returning a valid type for `render`. Glint itself will never see `hbs` get used, as
|
|
123
|
-
// it's transformed to the template DSL before typechecking.
|
|
124
|
-
declare module 'ember-cli-htmlbars' {
|
|
125
|
-
interface TemplateFactory extends TestTemplate<any> {}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
120
|
import '@ember/modifier';
|
|
129
|
-
import { OnModifier as ImportedOnModifier } from '../intrinsics/on';
|
|
121
|
+
import type { OnModifier as ImportedOnModifier } from '../intrinsics/on';
|
|
130
122
|
declare module '@ember/modifier' {
|
|
131
123
|
export interface OnModifier extends ImportedOnModifier {}
|
|
132
124
|
}
|
|
133
125
|
|
|
134
126
|
import '@ember/helper';
|
|
135
|
-
import { ConcatHelper as ImportedConcatHelper } from '../intrinsics/concat';
|
|
136
|
-
import { FnHelper as ImportedFnHelper } from '../intrinsics/fn';
|
|
137
|
-
import { GetHelper as ImportedGetHelper } from '../intrinsics/get';
|
|
127
|
+
import type { ConcatHelper as ImportedConcatHelper } from '../intrinsics/concat';
|
|
128
|
+
import type { FnHelper as ImportedFnHelper } from '../intrinsics/fn';
|
|
129
|
+
import type { GetHelper as ImportedGetHelper } from '../intrinsics/get';
|
|
138
130
|
|
|
139
131
|
declare module '@ember/helper' {
|
|
140
132
|
export interface ConcatHelper extends ImportedConcatHelper {}
|