From 283202464640d16e9a01d3d6ea818b7cb8f4373e Mon Sep 17 00:00:00 2001 From: Lexus Drumgold Date: Sun, 8 Jan 2023 21:04:06 -0500 Subject: [PATCH] chore(ts): fix custom typings Signed-off-by: Lexus Drumgold --- typings/chai/global.d.ts | 5 +---- typings/node/loader.d.ts | 12 ++++++------ 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/typings/chai/global.d.ts b/typings/chai/global.d.ts index b12bdfa2..38377bf4 100644 --- a/typings/chai/global.d.ts +++ b/typings/chai/global.d.ts @@ -1,6 +1,3 @@ -declare global { - var assert: Chai.AssertStatic - var expect: Chai.ExpectStatic -} +declare global {} export {} diff --git a/typings/node/loader.d.ts b/typings/node/loader.d.ts index bfdde290..f7776b8a 100644 --- a/typings/node/loader.d.ts +++ b/typings/node/loader.d.ts @@ -9,7 +9,7 @@ declare global { /** * {@link LoadHook} context. */ - declare interface LoadHookContext { + interface LoadHookContext { /** * Export conditions of relevant `package.json`. */ @@ -29,7 +29,7 @@ declare global { /** * {@link LoadHook} result. */ - declare interface LoadHookResult { + interface LoadHookResult { /** * Module format. */ @@ -63,7 +63,7 @@ declare global { * Node.js `load` hook after last user-supplied `load` hook * @return {Promise} Hook result */ - declare type LoadHook = ( + type LoadHook = ( url: string, context: LoadHookContext, defaultLoad: LoadHook @@ -72,7 +72,7 @@ declare global { /** * {@link ResolveHook} context. */ - declare interface ResolveHookContext { + interface ResolveHookContext { /** * Export conditions of relevant `package.json`. */ @@ -93,7 +93,7 @@ declare global { /** * {@link ResolveHook} result. */ - declare interface ResolveHookResult { + interface ResolveHookResult { /** * Module format hint for {@linkcode LoadHook}. * @@ -130,7 +130,7 @@ declare global { * or default Node.js `resolve` hook after last user-supplied `resolve` hook * @return {Promise} Hook result */ - declare type ResolveHook = ( + type ResolveHook = ( specifier: string, context: ResolveHookContext, nextResolve: ResolveHook