types.ts in Code Block Pro – Beautiful Syntax Highlighting 1.2.7, 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 | lineNumbers: boolean; |
| 12 | startingLineNumber: number; |
| 13 | frame: boolean; |
| 14 | renderType: string; |
| 15 | label: string; |
| 16 | copyButton: boolean; |
| 17 | }; |
| 18 | export interface AttributesPropsAndSetter { |
| 19 | attributes: Attributes; |
| 20 | setAttributes: (attrs: Partial<Attributes>) => void; |
| 21 | } |
| 22 | |
| 23 | declare global { |
| 24 | interface Window { |
| 25 | codeBlockPro: { |
| 26 | pluginUrl: string; |
| 27 | }; |
| 28 | } |
| 29 | } |
| 30 |