remove deprecated api
This commit is contained in:
+29
-25
@@ -1,23 +1,25 @@
|
||||
export enum PrismjsType {
|
||||
PlainText = "PlainText",
|
||||
Markdown = "Markdown",
|
||||
JavaScript = "JavaScript",
|
||||
TypeScript = "TypeScript",
|
||||
Initialization = "Initialization",
|
||||
PHP = "PHP",
|
||||
SQL = "SQL",
|
||||
XML = "XML",
|
||||
CSS = "CSS",
|
||||
VUE = "VUE",
|
||||
LESS = "LESS",
|
||||
Markup = "Markup",
|
||||
YAML = "YAML",
|
||||
Json = "Json",
|
||||
Java = "Java",
|
||||
Properties = "Properties",
|
||||
NginxConf = "NginxConf",
|
||||
ApacheConf = "ApacheConf"
|
||||
}
|
||||
export const PrismjsType = {
|
||||
PlainText: "PlainText",
|
||||
Markdown: "Markdown",
|
||||
JavaScript: "JavaScript",
|
||||
TypeScript: "TypeScript",
|
||||
Initialization: "Initialization",
|
||||
PHP: "PHP",
|
||||
SQL: "SQL",
|
||||
XML: "XML",
|
||||
CSS: "CSS",
|
||||
VUE: "VUE",
|
||||
LESS: "LESS",
|
||||
Markup: "Markup",
|
||||
YAML: "YAML",
|
||||
Json: "Json",
|
||||
Java: "Java",
|
||||
Properties: "Properties",
|
||||
NginxConf: "NginxConf",
|
||||
ApacheConf: "ApacheConf"
|
||||
} as const;
|
||||
|
||||
export type PrismjsType = (typeof PrismjsType)[keyof typeof PrismjsType];
|
||||
|
||||
export type PrismjsProperties = {
|
||||
|
||||
@@ -26,14 +28,16 @@ export type PrismjsProperties = {
|
||||
viewer: PrismjsViewer;
|
||||
}
|
||||
|
||||
export enum PrismjsViewer {
|
||||
export const PrismjsViewer = {
|
||||
|
||||
MARKDOWN = "MARKDOWN",
|
||||
MARKDOWN: "MARKDOWN",
|
||||
|
||||
CODE = "CODE",
|
||||
CODE: "CODE",
|
||||
|
||||
TEXT = "TEXT",
|
||||
}
|
||||
TEXT: "TEXT"
|
||||
} as const;
|
||||
|
||||
export type PrismjsViewer = (typeof PrismjsViewer)[keyof typeof PrismjsViewer];
|
||||
|
||||
export default class Prismjs {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user