From a9f88de57f00d4231480f31ccd167a8430333d22 Mon Sep 17 00:00:00 2001 From: Alex Miller Date: Fri, 26 Aug 2022 23:09:16 +1200 Subject: [PATCH] docs: Update examples in readme. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 40795d5..7d2a764 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Simply add `TypeScriptLoader` to the list of loaders for the `.ts` file type: ```ts import { cosmiconfig } from "cosmiconfig"; -import TypeScriptLoader from "cosmiconfig-typescript-loader"; +import { TypeScriptLoader } from "cosmiconfig-typescript-loader"; const moduleName = "module"; const explorer = cosmiconfig("test", { @@ -51,7 +51,7 @@ Or more simply if you only support loading of a TypeScript based configuration f ```ts import { cosmiconfig } from "cosmiconfig"; -import TypeScriptLoader from "cosmiconfig-typescript-loader"; +import { TypeScriptLoader } from "cosmiconfig-typescript-loader"; const moduleName = "module"; const explorer = cosmiconfig("test", {