Move type defs to typescript-typingsd
This commit is contained in:
3
packages/typescript-typings/types/detect-node/index.d.ts
vendored
Normal file
3
packages/typescript-typings/types/detect-node/index.d.ts
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
declare module 'detect-node' {
|
||||
export const isNode: boolean;
|
||||
}
|
8
packages/typescript-typings/types/json-rpc-error/index.d.ts
vendored
Normal file
8
packages/typescript-typings/types/json-rpc-error/index.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
declare module 'json-rpc-error' {
|
||||
export class InternalError extends Error {
|
||||
constructor(err: Error | string);
|
||||
}
|
||||
export class MethodNotFound extends Error {
|
||||
constructor();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user