Skip to content

Commit

Permalink
add types for lilconfig options
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Nov 30, 2023
1 parent f66dee2 commit f6daebe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ async function loader(filepath) {
return req(filepath)
}

/** @return {import('lilconfig').Options} */
const withLoaders = (options = {}) => {
let moduleName = 'postcss'

Expand All @@ -88,8 +89,8 @@ const withLoaders = (options = {}) => {
'.mjs': loader,
'.mts': loader,
'.ts': loader,
'.yaml': (filepath, content) => yaml.parse(content),
'.yml': (filepath, content) => yaml.parse(content)
'.yaml': (_, content) => yaml.parse(content),
'.yml': (_, content) => yaml.parse(content)
},
searchPlaces: [
...(options.searchPlaces || []),
Expand Down

0 comments on commit f6daebe

Please sign in to comment.