-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop id type annotations when destructuring content
They're unnecessary and cause a syntax error
- Loading branch information
1 parent
2826d5f
commit a57b45f
Showing
4 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...demods/tests/__testfixtures__/legacy-compat-builders/ts/destructuring/drop-types.input.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
const post: Post = await this.store.findAll<Post>('post'); | ||
const { id }: Post = await this.store.findAll<Post>('post'); |
5 changes: 5 additions & 0 deletions
5
...emods/tests/__testfixtures__/legacy-compat-builders/ts/destructuring/drop-types.output.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { findAll } from '@ember-data/legacy-compat/builders'; | ||
const { content: post } = await this.store.request<Post[]>(findAll<Post>('post')); | ||
const { | ||
content: { id }, | ||
} = await this.store.request<Post[]>(findAll<Post>('post')); |