Skip to content

Commit a9f88de

Browse files
committed
docs: Update examples in readme.
1 parent 1b8e39d commit a9f88de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Simply add `TypeScriptLoader` to the list of loaders for the `.ts` file type:
2222

2323
```ts
2424
import { cosmiconfig } from "cosmiconfig";
25-
import TypeScriptLoader from "cosmiconfig-typescript-loader";
25+
import { TypeScriptLoader } from "cosmiconfig-typescript-loader";
2626

2727
const moduleName = "module";
2828
const explorer = cosmiconfig("test", {
@@ -51,7 +51,7 @@ Or more simply if you only support loading of a TypeScript based configuration f
5151

5252
```ts
5353
import { cosmiconfig } from "cosmiconfig";
54-
import TypeScriptLoader from "cosmiconfig-typescript-loader";
54+
import { TypeScriptLoader } from "cosmiconfig-typescript-loader";
5555

5656
const moduleName = "module";
5757
const explorer = cosmiconfig("test", {

0 commit comments

Comments
 (0)