diff --git a/types/fluent__bundle/OTHER_FILES.txt b/types/fluent__bundle/OTHER_FILES.txt new file mode 100644 index 0000000000..cbc25ea9f7 --- /dev/null +++ b/types/fluent__bundle/OTHER_FILES.txt @@ -0,0 +1 @@ +compat.d.ts \ No newline at end of file diff --git a/types/fluent__bundle/compat.d.ts b/types/fluent__bundle/compat.d.ts new file mode 100644 index 0000000000..ea465c2a34 --- /dev/null +++ b/types/fluent__bundle/compat.d.ts @@ -0,0 +1 @@ +export * from './index'; diff --git a/types/fluent__bundle/fluent__bundle-tests.ts b/types/fluent__bundle/fluent__bundle-tests.ts index e9ef175343..678e8ee94d 100755 --- a/types/fluent__bundle/fluent__bundle-tests.ts +++ b/types/fluent__bundle/fluent__bundle-tests.ts @@ -1,7 +1,9 @@ import { FluentBundle, FluentDateTime, FluentError, FluentNumber, FluentResource, Scope } from '@fluent/bundle'; +import * as compat from '@fluent/bundle/compat'; // FluentBundle examples: const bundle = new FluentBundle(['en-US']); +const compatBundle = new compat.FluentBundle(['en-US']); // FluentResource examples: const resource = new FluentResource(`test=Some other message with args arg1={$arg1} and arg2={$arg2}`); diff --git a/types/fluent__bundle/tsconfig.json b/types/fluent__bundle/tsconfig.json index 0d0d21955a..4f0a03fde3 100755 --- a/types/fluent__bundle/tsconfig.json +++ b/types/fluent__bundle/tsconfig.json @@ -20,6 +20,9 @@ "paths": { "@fluent/bundle": [ "fluent__bundle" + ], + "@fluent/bundle/compat": [ + "fluent__bundle/compat" ] } },