Skip to content

Commit 3b24d39

Browse files
Copilothzhangxyz
andauthored
Add TypeScript declaration files to bnf package (#101)
* Initial plan * Add TypeScript declaration files to bnf package Co-authored-by: hzhangxyz <[email protected]> * Update tsconfig to only include TypeScript source files Co-authored-by: hzhangxyz <[email protected]> * Simplify TypeScript declarations: use manual .d.mts with rollup copy plugin Co-authored-by: hzhangxyz <[email protected]> * Update package-lock.json. * Call pre commit hook. --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: hzhangxyz <[email protected]> Co-authored-by: Hao Zhang <[email protected]>
1 parent 47c556f commit 3b24d39

File tree

5 files changed

+4562
-2452
lines changed

5 files changed

+4562
-2452
lines changed

bnf/atsds_bnf/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*
2-
!index.js
2+
!index.mjs
3+
!index.d.mts

bnf/atsds_bnf/index.d.mts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* Parse Dsp format (human-readable) to Ds format (internal S-expression)
3+
* @param input - The Dsp format string to parse
4+
* @returns The Ds format string
5+
*/
6+
export function parse(input: string): string;
7+
8+
/**
9+
* Unparse Ds format (internal S-expression) to Dsp format (human-readable)
10+
* @param input - The Ds format string to unparse
11+
* @returns The Dsp format string
12+
*/
13+
export function unparse(input: string): string;

0 commit comments

Comments
 (0)