From 6233e51f07941c6ac47ee86513f8c592fab56f98 Mon Sep 17 00:00:00 2001 From: Joel Spadin Date: Sun, 3 Mar 2019 20:50:48 -0600 Subject: [PATCH] Change export default to export = --- types/plurals-cldr/index.d.ts | 4 ++-- types/plurals-cldr/plurals-cldr-tests.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/types/plurals-cldr/index.d.ts b/types/plurals-cldr/index.d.ts index 0d7277b52a..a65fc4e2c8 100644 --- a/types/plurals-cldr/index.d.ts +++ b/types/plurals-cldr/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Joel Spadin // 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; diff --git a/types/plurals-cldr/plurals-cldr-tests.ts b/types/plurals-cldr/plurals-cldr-tests.ts index f5aacbd30c..7927afe761 100644 --- a/types/plurals-cldr/plurals-cldr-tests.ts +++ b/types/plurals-cldr/plurals-cldr-tests.ts @@ -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