-
-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
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,3 @@ | ||
import type { MyInterface } from './refs.js'; | ||
|
||
const x: MyInterface = { _class: 1, _type: { key: 1 }, _fn: () => {}, _const: 1 }; |
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,9 @@ | ||
{ | ||
"name": "@fixtures/exports-value-refs", | ||
"knip": { | ||
"ignoreExportsUsedInFile": { | ||
"interface": true, | ||
"type": true | ||
} | ||
} | ||
} |
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,16 @@ | ||
export interface MyInterface { | ||
_class: MyClass; | ||
_type: MyType; | ||
_fn: typeof fn; | ||
_const: typeof c; | ||
} | ||
|
||
export type MyType = { | ||
key: 1; | ||
}; | ||
|
||
export class MyClass {} | ||
|
||
export function fn() {} | ||
|
||
export const c = 1; |