pangolinjs / core

The Pangolin.js core that drives everything.
https://pangolinjs.org
Other
19 stars 3 forks source link

Add types to config #102

Open mvsde opened 3 years ago

mvsde commented 3 years ago

There is a fantastic example by Anthony Fu for typed configs that work both in JS and TS:

// vite.config.js
import { defineConfig } from 'vite'

export default defineConfig({
  /* ... */
})

The defineConfig function acts as pass through that adds types along the way.