types.ts in Code Block Pro – Beautiful Syntax Highlighting 1.5.0, at src/types.ts
| 1 | import { Lang, Theme } from 'shiki'; |
| 2 | |
| 3 | export type Attributes = { |
| 4 | code: string; |
| 5 | codeHTML: string; |
| 6 | language: Lang; |
| 7 | theme: Theme; |
| 8 | align: 'wide' | 'full'; |
| 9 | bgColor: string; |
| 10 | textColor: string; |
| 11 | fontSize: string; |
| 12 | fontFamily: string; |
| 13 | lineHeight: string; |
| 14 | lineNumbers: boolean; |
| 15 | clampFonts: boolean; |
| 16 | headerType: string; |
| 17 | startingLineNumber: number; |
| 18 | frame: boolean; |
| 19 | renderType: string; |
| 20 | label: string; |
| 21 | copyButton: boolean; |
| 22 | }; |
| 23 | export interface AttributesPropsAndSetter { |
| 24 | attributes: Attributes; |
| 25 | setAttributes: (attrs: Partial<Attributes>) => void; |
| 26 | } |
| 27 | |
| 28 | declare global { |
| 29 | interface Window { |
| 30 | codeBlockPro: { |
| 31 | pluginUrl: string; |
| 32 | }; |
| 33 | } |
| 34 | } |
| 35 |