mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
add exported compat to fluent__bundle (#41101)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
compat.d.ts
|
||||
Vendored
+1
@@ -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