-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: types for core all done I think
- Loading branch information
1 parent
a650023
commit f8c1168
Showing
6 changed files
with
21 additions
and
4 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 |
---|---|---|
@@ -1 +1 @@ | ||
npm run lint | ||
npm run lint && npm run types:lint && npm run types:check |
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
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
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
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,18 @@ | ||
type RequestConstructor = new (input: string | Request, init ?: RequestInit) => Request; | ||
|
||
declare type FetchMockCore ={ | ||
createInstance: () => FetchMock | ||
config: FetchMockConfig; | ||
} | ||
|
||
declare type FetchMock = FetchMockCore & Router | ||
|
||
// 5. Declaration merging | ||
// Unlike a type alias, an interface can be defined multiple times, and will be treated as a single interface(with members of all declarations being merged). | ||
|
||
// // These two declarations become: | ||
// // interface Point { x: number; y: number; } | ||
// interface Point { x: number; } | ||
// interface Point { y: number; } | ||
|
||
// const point: Point = { x: 1, y: 2 }; |
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