mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-18 12:08:59 +08:00
Fix feathersjs dependers (#24091)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
// Project: http://feathersjs.com/
|
||||
// Definitions by: Abraao Alves <https://github.com/AbraaoAlves>, Jan Lohage <https://github.com/j2L4e>
|
||||
// Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
export default function feathersAuthClient(config?: FeathersAuthClientConfig): () => void;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Project: http://feathersjs.com/
|
||||
// Definitions by: Jan Lohage <https://github.com/j2L4e>
|
||||
// Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript
|
||||
// TypeScript Version: 2.2
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import { Application } from '@feathersjs/feathers';
|
||||
import { Request } from 'express';
|
||||
@@ -45,7 +45,7 @@ export interface FeathersAuthenticationJWTOptions {
|
||||
}
|
||||
|
||||
export class JWTVerifier {
|
||||
constructor(app: Application<any>, options: any); // the class constructor
|
||||
constructor(app: Application, options: any); // the class constructor
|
||||
|
||||
verify(req: Request, payload: any, done: (error: any, user?: any, info?: any) => void): void;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Project: http://feathersjs.com/
|
||||
// Definitions by: Jan Lohage <https://github.com/j2L4e>
|
||||
// Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript
|
||||
// TypeScript Version: 2.2
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import {
|
||||
Application,
|
||||
@@ -57,7 +57,7 @@ export interface FeathersAuthenticationLocalOptions {
|
||||
}
|
||||
|
||||
export class LocalVerifier {
|
||||
constructor(app: Application<any>, options: any);
|
||||
constructor(app: Application, options: any);
|
||||
|
||||
_comparePassword<T>(entity: T, password: string): Promise<T>; // compares password using bcrypt
|
||||
_normalizeResult<T>(results: T[] | Paginated<T>): Promise<T>; // normalizes result from service to account for pagination
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Project: http://feathersjs.com/
|
||||
// Definitions by: Jan Lohage <https://github.com/j2L4e>
|
||||
// Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript
|
||||
// TypeScript Version: 2.2
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import {
|
||||
Application,
|
||||
@@ -60,7 +60,7 @@ export interface FeathersAuthenticationOAuth1Options {
|
||||
}
|
||||
|
||||
export class OAuth1Verifier {
|
||||
constructor(app: Application<any>, options: any);
|
||||
constructor(app: Application, options: any);
|
||||
|
||||
_updateEntity(entity: any, data: { profile: any, accessToken: string, refreshToken: string }): Promise<any>; // updates an existing entity
|
||||
_createEntity(data: { profile: any, accessToken: string, refreshToken: string }): Promise<any>; // creates an entity if they didn't exist already
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Project: http://feathersjs.com/
|
||||
// Definitions by: Jan Lohage <https://github.com/j2L4e>
|
||||
// Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript
|
||||
// TypeScript Version: 2.2
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import {
|
||||
Application,
|
||||
@@ -62,7 +62,7 @@ export interface FeathersAuthenticationOAuth2Options {
|
||||
}
|
||||
|
||||
export class OAuth2Verifier {
|
||||
constructor(app: Application<any>, options: any)
|
||||
constructor(app: Application, options: any)
|
||||
|
||||
_updateEntity(entity: any, data: { profile: any, accessToken: string, refreshToken: string }): Promise<any>; // updates an existing entity
|
||||
_createEntity(data: { profile: any, accessToken: string, refreshToken: string }): Promise<any>; // creates an entity if they didn't exist already
|
||||
|
||||
1
types/feathersjs__configuration/index.d.ts
vendored
1
types/feathersjs__configuration/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: http://feathersjs.com/
|
||||
// Definitions by: Jan Lohage <https://github.com/j2L4e>
|
||||
// Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import { Application } from '@feathersjs/feathers';
|
||||
|
||||
|
||||
2
types/feathersjs__express/index.d.ts
vendored
2
types/feathersjs__express/index.d.ts
vendored
@@ -2,7 +2,7 @@
|
||||
// Project: http://feathersjs.com/
|
||||
// Definitions by: Jan Lohage <https://github.com/j2L4e>
|
||||
// Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript
|
||||
// TypeScript Version: 2.2
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import { Application as FeathersApplication } from '@feathersjs/feathers';
|
||||
import * as express from 'express';
|
||||
|
||||
1
types/feathersjs__primus-client/index.d.ts
vendored
1
types/feathersjs__primus-client/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: http://feathersjs.com/
|
||||
// Definitions by: Jan Lohage <https://github.com/j2L4e>
|
||||
// Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
// primus removed its typings from the repo https://github.com/primus/primus/pull/623, as of 01/2018 there are none on DT
|
||||
export default function feathersPrimusClient(socket: any, options?: FeathersPrimusClientOptions): () => void;
|
||||
|
||||
1
types/feathersjs__socketio-client/index.d.ts
vendored
1
types/feathersjs__socketio-client/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: http://feathersjs.com/
|
||||
// Definitions by: Jan Lohage <https://github.com/j2L4e>
|
||||
// Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="socket.io-client" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user