11import { Unit } from "./unit.ts" ;
2- import { NodeWithoutIndent } from "./node.ts" ;
2+ import { PlainText } from "./plainText.ts" ;
3+ import { Formula } from "./formula.ts" ;
4+ import { Link } from "./link.ts" ;
5+ import { HashTag } from "./hashTag.ts" ;
6+ import { Icon } from "./icon.ts" ;
7+ import { UrlLink } from "./urlLink.ts" ;
8+ import { Url } from "./url.ts" ;
9+ import { Image } from "./image.ts" ;
10+ import { Gyazo } from "./gyazo.ts" ;
11+ import { ImageLink } from "./imageLink.ts" ;
12+ import { GyazoLink } from "./gyazoLink.ts" ;
13+ import { Video } from "./video.ts" ;
14+ import { Youtube } from "./youtube.ts" ;
15+ import { Vimeo } from "./vimeo.ts" ;
16+ import { Audio } from "./audio.ts" ;
17+ import { AudioLink } from "./audioLink.ts" ;
18+ import { Spotify } from "./spotify.ts" ;
19+ import { Anchor } from "./anchor.ts" ;
20+ import { GoogleMap } from "./googleMap.ts" ;
21+
22+ /** 文字装飾記法中に入れられる記法 */
23+ export type NodeInDecoration =
24+ | PlainText
25+ | Formula
26+ | Link
27+ | HashTag
28+ | Icon
29+ | UrlLink
30+ | Url
31+ | Image
32+ | Gyazo
33+ | ImageLink
34+ | GyazoLink
35+ | Video
36+ | Audio
37+ | AudioLink
38+ | Spotify
39+ | Anchor
40+ | Youtube
41+ | Vimeo
42+ | GoogleMap ;
343
444/** 文字装飾記法 */
545export interface Decoration {
@@ -9,7 +49,7 @@ export interface Decoration {
949 unit : DecorationUnit ;
1050
1151 /** 中に含まれるNode */
12- children : NodeWithoutIndent ;
52+ children : NodeInDecoration | NodeInDecoration [ ] ;
1353}
1454
1555export interface DecorationUnit extends Unit {
0 commit comments