Skip to content

Commit

Permalink
chore(ts): fix custom typings
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <[email protected]>
  • Loading branch information
unicornware committed Jan 9, 2023
1 parent c872ad1 commit 2832024
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
5 changes: 1 addition & 4 deletions typings/chai/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
declare global {
var assert: Chai.AssertStatic
var expect: Chai.ExpectStatic
}
declare global {}

export {}
12 changes: 6 additions & 6 deletions typings/node/loader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ declare global {
/**
* {@link LoadHook} context.
*/
declare interface LoadHookContext {
interface LoadHookContext {
/**
* Export conditions of relevant `package.json`.
*/
Expand All @@ -29,7 +29,7 @@ declare global {
/**
* {@link LoadHook} result.
*/
declare interface LoadHookResult {
interface LoadHookResult {
/**
* Module format.
*/
Expand Down Expand Up @@ -63,7 +63,7 @@ declare global {
* Node.js `load` hook after last user-supplied `load` hook
* @return {Promise<LoadHookResult>} Hook result
*/
declare type LoadHook = (
type LoadHook = (
url: string,
context: LoadHookContext,
defaultLoad: LoadHook
Expand All @@ -72,7 +72,7 @@ declare global {
/**
* {@link ResolveHook} context.
*/
declare interface ResolveHookContext {
interface ResolveHookContext {
/**
* Export conditions of relevant `package.json`.
*/
Expand All @@ -93,7 +93,7 @@ declare global {
/**
* {@link ResolveHook} result.
*/
declare interface ResolveHookResult {
interface ResolveHookResult {
/**
* Module format hint for {@linkcode LoadHook}.
*
Expand Down Expand Up @@ -130,7 +130,7 @@ declare global {
* or default Node.js `resolve` hook after last user-supplied `resolve` hook
* @return {Promise<ResolveHookResult>} Hook result
*/
declare type ResolveHook = (
type ResolveHook = (
specifier: string,
context: ResolveHookContext,
nextResolve: ResolveHook
Expand Down

0 comments on commit 2832024

Please sign in to comment.