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:
Joachim Van Herwegen
2023-06-16 10:36:55 +02:00
parent 7024ee9a58
commit b3ef4ed017
22 changed files with 2235 additions and 27 deletions

View File

@@ -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';

View File

@@ -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';

View File

@@ -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';

View File

@@ -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';