Skip to content

Commit 72d6317

Browse files
committed
Provide types for helpers named exports for .gts support
1 parent 4f1c74e commit 72d6317

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

.github/workflows/plan-release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ jobs:
5656
with:
5757
node-version: 18
5858
- uses: pnpm/action-setup@v4
59-
with:
60-
version: 9
6159
- run: pnpm install --frozen-lockfile
6260
- name: "Generate Explanation and Prep Changelogs"
6361
id: explanation

.github/workflows/publish.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ jobs:
5050
# This creates an .npmrc that reads the NODE_AUTH_TOKEN environment variable
5151
registry-url: 'https://registry.npmjs.org'
5252
- uses: pnpm/action-setup@v4
53-
with:
54-
version: 9
5553
- run: pnpm install --frozen-lockfile
5654
- name: npm publish
5755
run: pnpm release-plan publish

ember-changeset/.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
/.template-lintrc.js
2020
/.travis.yml
2121
/.watchmanconfig
22-
/CODE_OF_CONDUCT.md
2322
/CONTRIBUTING.md
2423
/ember-cli-build.js
2524
/testem.js

ember-changeset/index.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { BufferedChangeset } from 'validated-changeset';
2+
import type { HelperLike } from '@glint/template';
23

34
type BufferedChangesetConstructorParameters = ConstructorParameters<typeof BufferedChangeset>;
45

@@ -14,3 +15,17 @@ type changesetFunctionsParameters = [
1415
export class EmberChangeset extends BufferedChangeset {}
1516
export function changeset(...args: changesetFunctionsParameters): EmberChangeset;
1617
export function Changeset(...args: changesetFunctionsParameters): EmberChangeset;
18+
19+
type changesetGet = HelperLike<{
20+
Args: {
21+
Positional: [changeset: BufferedChangeset | EmberChangeset, fieldPath: string];
22+
};
23+
Return: unknown;
24+
}>;
25+
26+
type changesetSet = HelperLike<{
27+
Args: {
28+
Positional: [changeset: BufferedChangeset | EmberChangeset, fieldPath: string];
29+
};
30+
Return: (value: unknown) => void;
31+
}>;

0 commit comments

Comments
 (0)