Skip to content

Commit 799f39d

Browse files
feat: add index.d.ts
1 parent 88beb9c commit 799f39d

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

packages/toml/index.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
type LanguageRegistration = {
2+
libraryPath: string
3+
extensions: string[]
4+
languageSymbol?: string
5+
metaVarChar?: string
6+
expandoChar?: string
7+
}
8+
9+
declare const registratoin: LanguageRegistration
10+
export default registratoin

packages/toml/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const path = require('path')
22
const libPath = path.join(__dirname, 'parser.so')
3+
34
module.exports = {
45
libraryPath: libPath,
56
extensions: ['toml'],

packages/toml/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
},
1212
"files": [
1313
"index.js",
14+
"index.d.ts",
1415
"postinstall.js",
1516
"src",
1617
"prebuilds"

0 commit comments

Comments
 (0)