From cf445e64a89b3be6086c2d50b08687fdeaf3b3eb Mon Sep 17 00:00:00 2001 From: Tony Ngan Date: Thu, 14 May 2020 04:31:34 +0800 Subject: [PATCH] #354 Separate the type with alias for entity type and its constructor (#372) --- index.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/index.ts b/index.ts index 552afaf5..edda52b2 100644 --- a/index.ts +++ b/index.ts @@ -1,6 +1,7 @@ // version <= 1.25 -export { default as IdentityProvider } from './src/entity-idp'; -export { default as ServiceProvider } from './src/entity-sp'; +import IdentityProvider, { IdentityProvider as IdentityProviderInstance } from './src/entity-idp'; +import ServiceProvider, { ServiceProvider as ServiceProviderInstance } from './src/entity-sp'; + export { default as IdPMetadata } from './src/metadata-idp'; export { default as SPMetadata } from './src/metadata-sp'; export { default as Utility } from './src/utility'; @@ -16,6 +17,11 @@ import { setSchemaValidator } from './src/api'; export { Constants, Extractor, + // temp: resolve the conflict after version >= 3.0 + IdentityProvider, + IdentityProviderInstance, + ServiceProvider, + ServiceProviderInstance, // set context setSchemaValidator -}; +}; \ No newline at end of file