Skip to content

Commit 2d75afc

Browse files
Copilothzhangxyz
andcommitted
Simplify TypeScript declarations: use manual .d.mts with rollup copy plugin
Co-authored-by: hzhangxyz <[email protected]>
1 parent dc50956 commit 2d75afc

File tree

7 files changed

+368
-223
lines changed

7 files changed

+368
-223
lines changed

bnf/atsds_bnf/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
*
22
!index.mjs
3-
!index.mts
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;

bnf/atsds_bnf/index.mts

Lines changed: 0 additions & 132 deletions
This file was deleted.

0 commit comments

Comments
 (0)