mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
add exported compat to fluent__bundle (#41101)
This commit is contained in:
1
types/fluent__bundle/OTHER_FILES.txt
Normal file
1
types/fluent__bundle/OTHER_FILES.txt
Normal file
@@ -0,0 +1 @@
|
||||
compat.d.ts
|
||||
1
types/fluent__bundle/compat.d.ts
vendored
Normal file
1
types/fluent__bundle/compat.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from './index';
|
||||
@@ -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}`);
|
||||
|
||||
@@ -20,6 +20,9 @@
|
||||
"paths": {
|
||||
"@fluent/bundle": [
|
||||
"fluent__bundle"
|
||||
],
|
||||
"@fluent/bundle/compat": [
|
||||
"fluent__bundle/compat"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user