Skip to content

Commit

Permalink
docs: Update examples in readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
Codex- committed Aug 26, 2022
1 parent 1b8e39d commit a9f88de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down Expand Up @@ -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", {
Expand Down

0 comments on commit a9f88de

Please sign in to comment.