forked from datahub-project/datahub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ember-simple-auth.d.ts
31 lines (27 loc) · 1.09 KB
/
ember-simple-auth.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
declare module 'ember-simple-auth/mixins/authenticated-route-mixin' {
import MixinOne from '@ember/object/mixin';
export default MixinOne;
}
declare module 'ember-simple-auth/mixins/application-route-mixin' {
import MixinTwo from '@ember/object/mixin';
export default MixinTwo;
}
declare module 'ember-simple-auth/services/session' {
import Ember from 'ember';
import Service from '@ember/service';
import Transition from '@ember/routing/-private/transition';
export default class Session extends Service {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
authenticate(authenticator: string, ...args: Array<any>): Promise<void>;
authorize(authorizer: string, block: Function): void;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
invalidate(...args: Array<any>): Promise<void>;
attemptedTransition: Transition | null;
data: Readonly<object | { authenticated: {} }>;
isAuthenticated: boolean;
}
}
declare module 'ember-simple-auth/authenticators/base' {
import EmberObject from '@ember/object';
export default EmberObject;
}