1343dea49d
- Fixed a macOS clipboard bug where copied URL text like `https://i.can.ac/x.png` was coerced into a bogus HFS path (`/https/::i.can.ac:x.png`) and dead-ended with "Image not found" instead of falling through to text paste. - The AppleScript now checks `clipboard info for "class furl"` before coercing so plain text/URL clipboards paste as text rather than file paths. - Extracted the script to its own `.applescript` file and added TypeScript declarations for `.applescript` imports.
72 lines
1.4 KiB
TypeScript
72 lines
1.4 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 "*.rb" {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
declare module "*.jl" {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
declare module "*.lark" {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
declare module "*.sh" {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
declare module "*.applescript" {
|
|
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;
|
|
}
|