notion-ts-client
Version:
Generates an easy to use and fully typed API to access and modify the data in Notion Databases
13 lines (10 loc) • 342 B
text/typescript
import { saveContentToFile } from '../file-utils'
export function createIndexFile(opts: { dbPath: string; fileName: string }) {
const content = `export * from './constants'
export * from './db'
export * from './patch.dto'
export * from './response.dto'
export * from './types'
`
saveContentToFile(content, opts.dbPath, opts.fileName)
}