Skip to content

Commit ffcf876

Browse files
committed
chore: type-exports
1 parent abc449e commit ffcf876

File tree

5 files changed

+30
-5
lines changed

5 files changed

+30
-5
lines changed

packages/davinci-client/src/types.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66
import 'immer'; // Side-effect needed only for getting types in workspace
77

8-
import type { RequestMiddleware } from '@forgerock/sdk-request-middleware';
98
import type { FidoClient } from './lib/fido/fido.js';
109
import type * as collectors from './lib/collector.types.js';
1110
import type * as config from './lib/config.types.js';
@@ -14,7 +13,7 @@ import type * as client from './lib/client.types.js';
1413
import { davinci } from './lib/client.store.js';
1514
import { nodeSlice } from './lib/node.slice.js';
1615

17-
export type { CustomLogger } from '@forgerock/sdk-logger/types';
16+
export type { CustomLogger, LogLevel } from '@forgerock/sdk-logger';
1817

1918
export type DaVinciConfig = config.DaVinciConfig;
2019

@@ -54,5 +53,5 @@ export type FidoRegistrationCollector = collectors.FidoRegistrationCollector;
5453
export type FidoAuthenticationCollector = collectors.FidoAuthenticationCollector;
5554

5655
export type InternalErrorResponse = client.InternalErrorResponse;
57-
export type { RequestMiddleware };
56+
export type { RequestMiddleware, ActionTypes } from '@forgerock/sdk-request-middleware';
5857
export type { FidoClient };

packages/device-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"exports": {
1414
".": "./dist/src/index.js",
1515
"./package.json": "./package.json",
16-
"./types": "./dist/src/lib/types/index.d.ts"
16+
"./types": "./dist/src/types.d.ts"
1717
},
1818
"main": "./dist/src/index.js",
1919
"module": "./dist/src/index.js",

packages/device-client/src/lib/types/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
* This software may be modified and distributed under the terms
55
* of the MIT license. See the LICENSE file for details.
66
*/
7+
8+
// Re-export types from external dependencies that consumers need
9+
export type { ConfigOptions } from '@forgerock/javascript-sdk';
10+
11+
// Re-export local types
712
export * from './oath.types.js';
813
export * from './webauthn.types.js';
914
export * from './profile-device.types.js';

packages/journey-client/src/types.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@
55
* of the MIT license. See the LICENSE file for details.
66
*/
77

8+
// Re-export types from internal packages that consumers need
9+
export type { LogLevel, CustomLogger } from '@forgerock/sdk-logger';
10+
export type { RequestMiddleware } from '@forgerock/sdk-request-middleware';
11+
export type {
12+
Step,
13+
Callback,
14+
CallbackType,
15+
StepType,
16+
callbackType,
17+
GenericError,
18+
PolicyRequirement,
19+
FailedPolicyRequirement,
20+
} from '@forgerock/sdk-types';
21+
22+
// Re-export local types
823
export * from './lib/config.types.js';
924
export * from './lib/interfaces.js';
1025
export * from './lib/step.types.js';

packages/oidc-client/src/types.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
* This software may be modified and distributed under the terms
44
* of the MIT license. See the LICENSE file for details.
55
*/
6-
export { GenericError, GetAuthorizationUrlOptions } from '@forgerock/sdk-types';
76

7+
// Re-export types from internal packages that consumers need
8+
export type { LogLevel, CustomLogger } from '@forgerock/sdk-logger';
9+
export type { RequestMiddleware } from '@forgerock/sdk-request-middleware';
10+
export type { GenericError, GetAuthorizationUrlOptions } from '@forgerock/sdk-types';
11+
export type { StorageConfig } from '@forgerock/storage';
12+
13+
// Re-export local types
814
export * from './lib/client.types.js';
915
export * from './lib/config.types.js';
1016
export * from './lib/authorize.request.types.js';

0 commit comments

Comments
 (0)