Change export default to export =

This commit is contained in:
Joel Spadin 2019-03-03 20:50:48 -06:00
parent cfb29cc2d2
commit 6233e51f07
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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