mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Use local file for oidc-provider typings
Due to v8 of oidc-provider being ESM, we can't use the typings directly because of a TS bug: https://github.com/microsoft/TypeScript/issues/49721. This works around that.
This commit is contained in:
@@ -3,7 +3,7 @@ import type {
|
||||
InteractionResults,
|
||||
KoaContextWithOIDC,
|
||||
UnknownObject,
|
||||
} from 'oidc-provider';
|
||||
} from '../../../templates/types/oidc-provider';
|
||||
import { BasicRepresentation } from '../../http/representation/BasicRepresentation';
|
||||
import type { Representation } from '../../http/representation/Representation';
|
||||
import { APPLICATION_JSON } from '../../util/ContentTypes';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { KoaContextWithOIDC } from 'oidc-provider';
|
||||
import type { KoaContextWithOIDC } from '../../../templates/types/oidc-provider';
|
||||
import type { Operation } from '../../http/Operation';
|
||||
import type { Representation } from '../../http/representation/Representation';
|
||||
import { APPLICATION_JSON } from '../../util/ContentTypes';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { AdapterPayload, Adapter } from 'oidc-provider';
|
||||
import type { AdapterPayload, Adapter } from '../../../../../templates/types/oidc-provider';
|
||||
import type { KeyValueStorage } from '../../../../storage/keyvalue/KeyValueStorage';
|
||||
import type { AdapterFactory } from '../../../storage/AdapterFactory';
|
||||
import { PassthroughAdapterFactory, PassthroughAdapter } from '../../../storage/PassthroughAdapterFactory';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import assert from 'assert';
|
||||
import type { InteractionResults } from 'oidc-provider';
|
||||
import type { InteractionResults } from '../../../../../templates/types/oidc-provider';
|
||||
import type { Operation } from '../../../../http/Operation';
|
||||
import { getLoggerFor } from '../../../../logging/LogUtil';
|
||||
import { BadRequestHttpError } from '../../../../util/errors/BadRequestHttpError';
|
||||
|
||||
Reference in New Issue
Block a user