mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Change export default to export =
This commit is contained in:
parent
cfb29cc2d2
commit
6233e51f07
4
types/plurals-cldr/index.d.ts
vendored
4
types/plurals-cldr/index.d.ts
vendored
@ -3,7 +3,7 @@
|
||||
// Definitions by: Joel Spadin <https://github.com/ChaosinaCan>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export type Form = 'zero' | 'one' | 'two' | 'few' | 'many' | 'other';
|
||||
type Form = 'zero' | 'one' | 'two' | 'few' | 'many' | 'other';
|
||||
|
||||
interface Plural {
|
||||
/**
|
||||
@ -50,4 +50,4 @@ declare const plural: Plural & {
|
||||
ordinal: Plural;
|
||||
};
|
||||
|
||||
export default plural;
|
||||
export = plural;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import plural from 'plurals-cldr';
|
||||
import plural = require('plurals-cldr');
|
||||
|
||||
plural('en', 0); // $ExpectType "zero" | "one" | "two" | "few" | "many" | "other" | null
|
||||
plural('en', ''); // $ExpectType "zero" | "one" | "two" | "few" | "many" | "other" | null
|
||||
|
||||
Loading…
Reference in New Issue
Block a user