Skip to content

Commit

Permalink
Export all of the types for development purposes
Browse files Browse the repository at this point in the history
Say I want to create a wrapper for the lib (or prepare some settings),
availability of those types will help me much.

Usage example:

```ts
import { Options } from 'metadata-scraper';

const myCustomOptions: Options = {
  // ...
}
```

And alike.

WDYT?
  • Loading branch information
smolak committed Jul 31, 2022
1 parent 0368b18 commit 56935b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Expand Up @@ -2,6 +2,9 @@ import got from 'got'
import * as domino from 'domino'

import { Options, Context, RuleSet, MetaData } from './types'

export * from './types'

import { metaDataRules } from './rules'

const defaultOptions = {
Expand Down Expand Up @@ -109,4 +112,4 @@ const getMetaData = async function(input: string | Partial<Options>, inputOption
}

export default getMetaData
module.exports = getMetaData
module.exports = getMetaData

0 comments on commit 56935b8

Please sign in to comment.