mirror of
https://github.com/ChainSafe/lodestar.git
synced 2026-01-08 23:28:10 -05:00
Move types dir to root (#4216)
* Move types dir to root * Update types location in root
This commit is contained in:
@@ -3,6 +3,6 @@
|
||||
"include": ["src"],
|
||||
"compilerOptions": {
|
||||
"outDir": "lib",
|
||||
"typeRoots": ["../../node_modules/@types", "./node_modules/@types", "./types"]
|
||||
"typeRoots": ["../../node_modules/@types", "./node_modules/@types", "../../types"]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"typeRoots": ["../../node_modules/@types", "./node_modules/@types", "./types"]
|
||||
"typeRoots": ["../../node_modules/@types", "./node_modules/@types", "../../types"]
|
||||
}
|
||||
}
|
||||
|
||||
28
packages/cli/types/libp2p-bootstrap/index.d.ts
vendored
28
packages/cli/types/libp2p-bootstrap/index.d.ts
vendored
@@ -1,28 +0,0 @@
|
||||
// Type definitions for libp2p-railing 0.9.1
|
||||
// Project: https://github.com/libp2p/js-libp2p-bootstrap
|
||||
// Definitions by: Jaco Greeff <https://github.com/jacogr>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
type PeerInfo = {
|
||||
id: import("peer-id");
|
||||
multiaddrs: import("multiaddr").Multiaddr[];
|
||||
};
|
||||
|
||||
declare namespace LibP2pBootstrap {
|
||||
type Options = {
|
||||
list: Array<string | import("multiaddr").Multiaddr>;
|
||||
interval?: number;
|
||||
};
|
||||
|
||||
type Events = "peer";
|
||||
}
|
||||
|
||||
declare class LibP2pBootstrap {
|
||||
constructor(options: LibP2pBootstrap.Options);
|
||||
|
||||
on(event: LibP2pBootstrap.Events, cb: (peerInfo: PeerInfo) => any): this;
|
||||
}
|
||||
|
||||
declare module "libp2p-bootstrap" {
|
||||
export default LibP2pBootstrap;
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": ["es6"],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": ["../"],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": ["index.d.ts", "libp2p-bootstrap-tests.ts"]
|
||||
}
|
||||
28
packages/cli/types/libp2p-mdns/index.d.ts
vendored
28
packages/cli/types/libp2p-mdns/index.d.ts
vendored
@@ -1,28 +0,0 @@
|
||||
// Type definitions for libp2p-mdns 0.12.0
|
||||
// Project: https://github.com/libp2p/js-libp2p-mdns
|
||||
// Definitions by: Jaco Greeff <https://github.com/jacogr>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="libp2p-bootstrap"/>
|
||||
|
||||
declare namespace LibP2pMdns {
|
||||
type Options = {
|
||||
broadcast?: boolean;
|
||||
interval?: number;
|
||||
peerInfo: PeerInfo;
|
||||
port?: number;
|
||||
serviceTag?: string;
|
||||
};
|
||||
|
||||
type Events = "peer";
|
||||
}
|
||||
|
||||
declare class LibP2pMdns extends LibP2pBootstrap {
|
||||
constructor(options: LibP2pMdns.Options);
|
||||
|
||||
on(event: LibP2pMdns.Events, cb: (peerInfo: PeerInfo) => any): this;
|
||||
}
|
||||
|
||||
declare module "libp2p-mdns" {
|
||||
export default LibP2pMdns;
|
||||
}
|
||||
4
packages/cli/types/snappyjs/index.d.ts
vendored
4
packages/cli/types/snappyjs/index.d.ts
vendored
@@ -1,4 +0,0 @@
|
||||
declare module "snappyjs" {
|
||||
export function compress<T extends ArrayBuffer | Buffer | Uint8Array>(input: T): T;
|
||||
export function uncompress<T extends ArrayBuffer | Buffer | Uint8Array>(input: T): T;
|
||||
}
|
||||
@@ -3,6 +3,6 @@
|
||||
"include": ["src"],
|
||||
"compilerOptions": {
|
||||
"outDir": "lib",
|
||||
"typeRoots": ["../../node_modules/@types", "./node_modules/@types", "./types"]
|
||||
"typeRoots": ["../../node_modules/@types", "./node_modules/@types", "../../types"]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
"extends": "../../tsconfig.json",
|
||||
"exclude": ["../../node_modules/it-pipe"],
|
||||
"compilerOptions": {
|
||||
"typeRoots": ["../../node_modules/@types", "./node_modules/@types", "./types"]
|
||||
"typeRoots": ["../../node_modules/@types", "./node_modules/@types", "../../types"]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
{"extends": "dtslint/dt.json"}
|
||||
@@ -1,16 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": ["es6"],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": ["../"],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": ["index.d.ts", "bn.js-tests.ts"]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{"extends": "dtslint/dt.json"}
|
||||
@@ -1,8 +0,0 @@
|
||||
declare class TimeCache {
|
||||
put(data: string): void;
|
||||
has(data: string): boolean;
|
||||
}
|
||||
|
||||
declare module "time-cache" {
|
||||
export default TimeCache;
|
||||
}
|
||||
@@ -3,6 +3,6 @@
|
||||
"include": ["src"],
|
||||
"compilerOptions": {
|
||||
"outDir": "./lib",
|
||||
"typeRoots": ["../../node_modules/@types", "./node_modules/@types", "./types"]
|
||||
"typeRoots": ["../../node_modules/@types", "./node_modules/@types", "../../types"]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"typeRoots": ["../../node_modules/@types", "./node_modules/@types", "./types"]
|
||||
"typeRoots": ["../../node_modules/@types", "./node_modules/@types", "../../types"]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
declare module "snappyjs" {
|
||||
export function compress<T extends ArrayBuffer | Buffer | Uint8Array>(input: T): T;
|
||||
export function uncompress<T extends ArrayBuffer | Buffer | Uint8Array>(input: T): T;
|
||||
}
|
||||
@@ -3,7 +3,8 @@
|
||||
"compilerOptions": {
|
||||
"emitDeclarationOnly": false,
|
||||
"incremental": false,
|
||||
"typeRoots": ["node_modules/@types", "./packages/lodestar/types"],
|
||||
// Required to run benchmark command from root directory
|
||||
"typeRoots": ["node_modules/@types", "./types"],
|
||||
"noEmit": true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user