mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-08 11:10:03 +00:00
ndn-js: use tslint:disable comments
This commit is contained in:
3
types/ndn-js/blob.d.ts
vendored
3
types/ndn-js/blob.d.ts
vendored
@@ -1,8 +1,7 @@
|
||||
export class Blob {
|
||||
constructor(value?: Blob);
|
||||
constructor(value: Buffer, copy?: boolean);
|
||||
constructor(value: number[]);
|
||||
constructor(value: string);
|
||||
constructor(value: number[]|string);
|
||||
|
||||
buf(): Buffer;
|
||||
equals(other: Blob): boolean;
|
||||
|
||||
1
types/ndn-js/key-chain.d.ts
vendored
1
types/ndn-js/key-chain.d.ts
vendored
@@ -29,6 +29,7 @@ export class KeyChain {
|
||||
sign(data: Data, params: SigningInfo, onComplete?: (data: Data) => any, onError?: (err: any) => any): void;
|
||||
sign(interest: Interest, params: SigningInfo, onComplete?: (interest: Interest) => any, onError?: (err: any) => any): void;
|
||||
signWithSha256(data: Data): void;
|
||||
// tslint:disable-next-line unified-signatures
|
||||
signWithSha256(interest: Interest): void;
|
||||
}
|
||||
|
||||
|
||||
2
types/ndn-js/name.d.ts
vendored
2
types/ndn-js/name.d.ts
vendored
@@ -54,10 +54,12 @@ export namespace Name {
|
||||
export class Name {
|
||||
constructor(components?: Array<Name.Component|Uint8Array>);
|
||||
constructor(uri: string);
|
||||
// tslint:disable-next-line unified-signatures
|
||||
constructor(name: Name);
|
||||
|
||||
append(value: number[]|ArrayBuffer|Uint8Array|string|Blob, type?: ComponentType, otherTypeCode?: number): Name;
|
||||
append(component: Name.Component): Name;
|
||||
// tslint:disable-next-line unified-signatures
|
||||
append(name: Name): Name;
|
||||
appendImplicitSha256Digest(digest: Blob): Name;
|
||||
appendParametersSha256Digest(digest: Blob): Name;
|
||||
|
||||
3
types/ndn-js/transport.d.ts
vendored
3
types/ndn-js/transport.d.ts
vendored
@@ -1,7 +1,9 @@
|
||||
// tslint:disable-next-line no-empty-interface
|
||||
export interface Transport {
|
||||
}
|
||||
|
||||
export namespace Transport {
|
||||
// tslint:disable-next-line no-empty-interface
|
||||
interface ConnectionInfo {
|
||||
}
|
||||
}
|
||||
@@ -34,6 +36,7 @@ export class WebSocketTransport implements Transport {
|
||||
|
||||
export namespace WebSocketTransport {
|
||||
class ConnectionInfo implements Transport.ConnectionInfo {
|
||||
// tslint:disable-next-line unified-signatures
|
||||
constructor(host: string, port: number);
|
||||
constructor(uri: string);
|
||||
equals(other: ConnectionInfo): boolean;
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dtslint.json",
|
||||
"rules": {
|
||||
"no-empty-interface": false,
|
||||
"unified-signatures": false
|
||||
}
|
||||
"extends": "dtslint/dtslint.json"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user