Skip to content

Commit

Permalink
chore(gatsby-core-utils): get-config-store to TS (#22051)
Browse files Browse the repository at this point in the history
* chore(gatsby-core-utils): get-config-store to TS

* chore(gatsby-core-utils): change getConfigStore to named export
  • Loading branch information
danielkov authored Mar 9, 2020
1 parent a0b69a4 commit 69fec7b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Configstore from "configstore"

let config
let config: Configstore

module.exports = () => {
export const getConfigStore = (): Configstore => {
if (!config) {
config = new Configstore(
`gatsby`,
Expand Down

0 comments on commit 69fec7b

Please sign in to comment.