51add68c81
- Removed the obsolete `bun-imports.d.ts` file from `packages/coding-agent/src`. - Consolidated the `*.css`, `*/template.js`, and `*.generated.js` module text-import declarations into `types/assets/index.d.ts`.
52 lines
1.1 KiB
TypeScript
52 lines
1.1 KiB
TypeScript
declare module "*.md" {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
declare module "*.txt" {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
declare module "*.py" {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
declare module "*.lark" {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
declare module "*.bdf" {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
// Session-export template assets imported as text (coding-agent src/export/html).
|
|
// No `*.html` declaration: bun-types claims that pattern as HTMLBundle, so the
|
|
// text import casts at the use site instead.
|
|
declare module "*.css" {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
declare module "*/template.js" {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
declare module "*.generated.js" {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
// turndown-plugin-gfm has no published types
|
|
declare module "turndown-plugin-gfm" {
|
|
import type TurndownService from "turndown";
|
|
export const gfm: TurndownService.Plugin;
|
|
export const tables: TurndownService.Plugin;
|
|
export const strikethrough: TurndownService.Plugin;
|
|
export const taskListItems: TurndownService.Plugin;
|
|
}
|