mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Update react-syntax-highlighter styles to version 7.0.0
This commit is contained in:
467
types/react-syntax-highlighter/index.d.ts
vendored
467
types/react-syntax-highlighter/index.d.ts
vendored
@@ -5,11 +5,11 @@
|
||||
// TypeScript Version: 2.6
|
||||
|
||||
declare module 'react-syntax-highlighter' {
|
||||
import SyntaxHighlighter from 'react-syntax-highlighter/dist/light';
|
||||
import SyntaxHighlighter from 'react-syntax-highlighter/light';
|
||||
export default SyntaxHighlighter;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/light' {
|
||||
declare module 'react-syntax-highlighter/light' {
|
||||
import * as React from 'react';
|
||||
|
||||
export function registerLanguage(name: string, func: any): void;
|
||||
@@ -31,473 +31,626 @@ declare module 'react-syntax-highlighter/dist/light' {
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles' {
|
||||
export { default as agate } from 'react-syntax-highlighter/dist/styles/agate';
|
||||
export { default as androidstudio } from 'react-syntax-highlighter/dist/styles/androidstudio';
|
||||
export { default as arduinoLight } from 'react-syntax-highlighter/dist/styles/arduino-light';
|
||||
export { default as arta } from 'react-syntax-highlighter/dist/styles/arta';
|
||||
export { default as ascetic } from 'react-syntax-highlighter/dist/styles/ascetic';
|
||||
export { default as atelierCaveDark } from 'react-syntax-highlighter/dist/styles/atelier-cave-dark';
|
||||
export { default as atelierCaveLight } from 'react-syntax-highlighter/dist/styles/atelier-cave-light';
|
||||
export { default as atelierDuneDark } from 'react-syntax-highlighter/dist/styles/atelier-dune-dark';
|
||||
export { default as atelierDuneLight } from 'react-syntax-highlighter/dist/styles/atelier-dune-light';
|
||||
export { default as atelierEstuaryDark } from 'react-syntax-highlighter/dist/styles/atelier-estuary-dark';
|
||||
export { default as atelierEstuaryLight } from 'react-syntax-highlighter/dist/styles/atelier-estuary-light';
|
||||
export { default as atelierForestDark } from 'react-syntax-highlighter/dist/styles/atelier-forest-dark';
|
||||
export { default as atelierForestLight } from 'react-syntax-highlighter/dist/styles/atelier-forest-light';
|
||||
export { default as atelierHeathDark } from 'react-syntax-highlighter/dist/styles/atelier-heath-dark';
|
||||
export { default as atelierHeathLight } from 'react-syntax-highlighter/dist/styles/atelier-heath-light';
|
||||
export { default as atelierLakesideDark } from 'react-syntax-highlighter/dist/styles/atelier-lakeside-dark';
|
||||
export { default as atelierLakesideLight } from 'react-syntax-highlighter/dist/styles/atelier-lakeside-light';
|
||||
export { default as atelierPlateauDark } from 'react-syntax-highlighter/dist/styles/atelier-plateau-dark';
|
||||
export { default as atelierPlateauLight } from 'react-syntax-highlighter/dist/styles/atelier-plateau-light';
|
||||
export { default as atelierSavannaDark } from 'react-syntax-highlighter/dist/styles/atelier-savanna-dark';
|
||||
export { default as atelierSavannaLight } from 'react-syntax-highlighter/dist/styles/atelier-savanna-light';
|
||||
export { default as atelierSeasideDark } from 'react-syntax-highlighter/dist/styles/atelier-seaside-dark';
|
||||
export { default as atelierSeasideLight } from 'react-syntax-highlighter/dist/styles/atelier-seaside-light';
|
||||
export { default as atelierSulphurpoolDark } from 'react-syntax-highlighter/dist/styles/atelier-sulphurpool-dark';
|
||||
export { default as atelierSulphurpoolLight } from 'react-syntax-highlighter/dist/styles/atelier-sulphurpool-light';
|
||||
export { default as atomOneDark } from 'react-syntax-highlighter/dist/styles/atom-one-dark';
|
||||
export { default as atomOneLight } from 'react-syntax-highlighter/dist/styles/atom-one-light';
|
||||
export { default as brownPaper } from 'react-syntax-highlighter/dist/styles/brown-paper';
|
||||
export { default as codepenEmbed } from 'react-syntax-highlighter/dist/styles/codepen-embed';
|
||||
export { default as colorBrewer } from 'react-syntax-highlighter/dist/styles/color-brewer';
|
||||
export { default as darcula } from 'react-syntax-highlighter/dist/styles/darcula';
|
||||
export { default as dark } from 'react-syntax-highlighter/dist/styles/dark';
|
||||
export { default as darkula } from 'react-syntax-highlighter/dist/styles/darkula';
|
||||
export { default as defaultStyle } from 'react-syntax-highlighter/dist/styles/default-style';
|
||||
export { default as docco } from 'react-syntax-highlighter/dist/styles/docco';
|
||||
export { default as dracula } from 'react-syntax-highlighter/dist/styles/dracula';
|
||||
export { default as far } from 'react-syntax-highlighter/dist/styles/far';
|
||||
export { default as foundation } from 'react-syntax-highlighter/dist/styles/foundation';
|
||||
export { default as githubGist } from 'react-syntax-highlighter/dist/styles/github-gist';
|
||||
export { default as github } from 'react-syntax-highlighter/dist/styles/github';
|
||||
export { default as googlecode } from 'react-syntax-highlighter/dist/styles/googlecode';
|
||||
export { default as grayscale } from 'react-syntax-highlighter/dist/styles/grayscale';
|
||||
export { default as gruvboxDark } from 'react-syntax-highlighter/dist/styles/gruvbox-dark';
|
||||
export { default as gruvboxLight } from 'react-syntax-highlighter/dist/styles/gruvbox-light';
|
||||
export { default as hopscotch } from 'react-syntax-highlighter/dist/styles/hopscotch';
|
||||
export { default as hybrid } from 'react-syntax-highlighter/dist/styles/hybrid';
|
||||
export { default as idea } from 'react-syntax-highlighter/dist/styles/idea';
|
||||
export { default as irBlack } from 'react-syntax-highlighter/dist/styles/ir-black';
|
||||
export { default as kimbieDark } from 'react-syntax-highlighter/dist/styles/kimbie.dark';
|
||||
export { default as kimbieLight } from 'react-syntax-highlighter/dist/styles/kimbie.light';
|
||||
export { default as magula } from 'react-syntax-highlighter/dist/styles/magula';
|
||||
export { default as monoBlue } from 'react-syntax-highlighter/dist/styles/mono-blue';
|
||||
export { default as monokaiSublime } from 'react-syntax-highlighter/dist/styles/monokai-sublime';
|
||||
export { default as monokai } from 'react-syntax-highlighter/dist/styles/monokai';
|
||||
export { default as obsidian } from 'react-syntax-highlighter/dist/styles/obsidian';
|
||||
export { default as ocean } from 'react-syntax-highlighter/dist/styles/ocean';
|
||||
export { default as paraisoDark } from 'react-syntax-highlighter/dist/styles/paraiso-dark';
|
||||
export { default as paraisoLight } from 'react-syntax-highlighter/dist/styles/paraiso-light';
|
||||
export { default as pojoaque } from 'react-syntax-highlighter/dist/styles/pojoaque';
|
||||
export { default as purebasic } from 'react-syntax-highlighter/dist/styles/purebasic';
|
||||
export { default as qtcreatorDark } from 'react-syntax-highlighter/dist/styles/qtcreator_dark';
|
||||
export { default as qtcreatorLight } from 'react-syntax-highlighter/dist/styles/qtcreator_light';
|
||||
export { default as railscasts } from 'react-syntax-highlighter/dist/styles/railscasts';
|
||||
export { default as rainbow } from 'react-syntax-highlighter/dist/styles/rainbow';
|
||||
export { default as schoolBook } from 'react-syntax-highlighter/dist/styles/school-book';
|
||||
export { default as solarizedDark } from 'react-syntax-highlighter/dist/styles/solarized-dark';
|
||||
export { default as solarizedLight } from 'react-syntax-highlighter/dist/styles/solarized-light';
|
||||
export { default as sunburst } from 'react-syntax-highlighter/dist/styles/sunburst';
|
||||
export { default as tomorrowNightBlue } from 'react-syntax-highlighter/dist/styles/tomorrow-night-blue';
|
||||
export { default as tomorrowNightBright } from 'react-syntax-highlighter/dist/styles/tomorrow-night-bright';
|
||||
export { default as tomorrowNightEighties } from 'react-syntax-highlighter/dist/styles/tomorrow-night-eighties';
|
||||
export { default as tomorrowNight } from 'react-syntax-highlighter/dist/styles/tomorrow-night';
|
||||
export { default as tomorrow } from 'react-syntax-highlighter/dist/styles/tomorrow';
|
||||
export { default as vs } from 'react-syntax-highlighter/dist/styles/vs';
|
||||
export { default as xcode } from 'react-syntax-highlighter/dist/styles/xcode';
|
||||
export { default as xt256 } from 'react-syntax-highlighter/dist/styles/xt256';
|
||||
export { default as zenburn } from 'react-syntax-highlighter/dist/styles/zenburn';
|
||||
declare module 'react-syntax-highlighter/styles/hljs' {
|
||||
export { default as agate } from 'react-syntax-highlighter/styles/hljs/agate';
|
||||
export { default as androidstudio } from 'react-syntax-highlighter/styles/hljs/androidstudio';
|
||||
export { default as arduinoLight } from 'react-syntax-highlighter/styles/hljs/arduino-light';
|
||||
export { default as arta } from 'react-syntax-highlighter/styles/hljs/arta';
|
||||
export { default as ascetic } from 'react-syntax-highlighter/styles/hljs/ascetic';
|
||||
export { default as atelierCaveDark } from 'react-syntax-highlighter/styles/hljs/atelier-cave-dark';
|
||||
export { default as atelierCaveLight } from 'react-syntax-highlighter/styles/hljs/atelier-cave-light';
|
||||
export { default as atelierDuneDark } from 'react-syntax-highlighter/styles/hljs/atelier-dune-dark';
|
||||
export { default as atelierDuneLight } from 'react-syntax-highlighter/styles/hljs/atelier-dune-light';
|
||||
export { default as atelierEstuaryDark } from 'react-syntax-highlighter/styles/hljs/atelier-estuary-dark';
|
||||
export { default as atelierEstuaryLight } from 'react-syntax-highlighter/styles/hljs/atelier-estuary-light';
|
||||
export { default as atelierForestDark } from 'react-syntax-highlighter/styles/hljs/atelier-forest-dark';
|
||||
export { default as atelierForestLight } from 'react-syntax-highlighter/styles/hljs/atelier-forest-light';
|
||||
export { default as atelierHeathDark } from 'react-syntax-highlighter/styles/hljs/atelier-heath-dark';
|
||||
export { default as atelierHeathLight } from 'react-syntax-highlighter/styles/hljs/atelier-heath-light';
|
||||
export { default as atelierLakesideDark } from 'react-syntax-highlighter/styles/hljs/atelier-lakeside-dark';
|
||||
export { default as atelierLakesideLight } from 'react-syntax-highlighter/styles/hljs/atelier-lakeside-light';
|
||||
export { default as atelierPlateauDark } from 'react-syntax-highlighter/styles/hljs/atelier-plateau-dark';
|
||||
export { default as atelierPlateauLight } from 'react-syntax-highlighter/styles/hljs/atelier-plateau-light';
|
||||
export { default as atelierSavannaDark } from 'react-syntax-highlighter/styles/hljs/atelier-savanna-dark';
|
||||
export { default as atelierSavannaLight } from 'react-syntax-highlighter/styles/hljs/atelier-savanna-light';
|
||||
export { default as atelierSeasideDark } from 'react-syntax-highlighter/styles/hljs/atelier-seaside-dark';
|
||||
export { default as atelierSeasideLight } from 'react-syntax-highlighter/styles/hljs/atelier-seaside-light';
|
||||
export { default as atelierSulphurpoolDark } from 'react-syntax-highlighter/styles/hljs/atelier-sulphurpool-dark';
|
||||
export { default as atelierSulphurpoolLight } from 'react-syntax-highlighter/styles/hljs/atelier-sulphurpool-light';
|
||||
export { default as atomOneDark } from 'react-syntax-highlighter/styles/hljs/atom-one-dark';
|
||||
export { default as atomOneLight } from 'react-syntax-highlighter/styles/hljs/atom-one-light';
|
||||
export { default as brownPaper } from 'react-syntax-highlighter/styles/hljs/brown-paper';
|
||||
export { default as codepenEmbed } from 'react-syntax-highlighter/styles/hljs/codepen-embed';
|
||||
export { default as colorBrewer } from 'react-syntax-highlighter/styles/hljs/color-brewer';
|
||||
export { default as darcula } from 'react-syntax-highlighter/styles/hljs/darcula';
|
||||
export { default as dark } from 'react-syntax-highlighter/styles/hljs/dark';
|
||||
export { default as darkula } from 'react-syntax-highlighter/styles/hljs/darkula';
|
||||
export { default as defaultStyle } from 'react-syntax-highlighter/styles/hljs/default-style';
|
||||
export { default as docco } from 'react-syntax-highlighter/styles/hljs/docco';
|
||||
export { default as dracula } from 'react-syntax-highlighter/styles/hljs/dracula';
|
||||
export { default as far } from 'react-syntax-highlighter/styles/hljs/far';
|
||||
export { default as foundation } from 'react-syntax-highlighter/styles/hljs/foundation';
|
||||
export { default as githubGist } from 'react-syntax-highlighter/styles/hljs/github-gist';
|
||||
export { default as github } from 'react-syntax-highlighter/styles/hljs/github';
|
||||
export { default as googlecode } from 'react-syntax-highlighter/styles/hljs/googlecode';
|
||||
export { default as grayscale } from 'react-syntax-highlighter/styles/hljs/grayscale';
|
||||
export { default as gruvboxDark } from 'react-syntax-highlighter/styles/hljs/gruvbox-dark';
|
||||
export { default as gruvboxLight } from 'react-syntax-highlighter/styles/hljs/gruvbox-light';
|
||||
export { default as hopscotch } from 'react-syntax-highlighter/styles/hljs/hopscotch';
|
||||
export { default as hybrid } from 'react-syntax-highlighter/styles/hljs/hybrid';
|
||||
export { default as idea } from 'react-syntax-highlighter/styles/hljs/idea';
|
||||
export { default as irBlack } from 'react-syntax-highlighter/styles/hljs/ir-black';
|
||||
export { default as kimbieDark } from 'react-syntax-highlighter/styles/hljs/kimbie.dark';
|
||||
export { default as kimbieLight } from 'react-syntax-highlighter/styles/hljs/kimbie.light';
|
||||
export { default as magula } from 'react-syntax-highlighter/styles/hljs/magula';
|
||||
export { default as monoBlue } from 'react-syntax-highlighter/styles/hljs/mono-blue';
|
||||
export { default as monokaiSublime } from 'react-syntax-highlighter/styles/hljs/monokai-sublime';
|
||||
export { default as monokai } from 'react-syntax-highlighter/styles/hljs/monokai';
|
||||
export { default as obsidian } from 'react-syntax-highlighter/styles/hljs/obsidian';
|
||||
export { default as ocean } from 'react-syntax-highlighter/styles/hljs/ocean';
|
||||
export { default as paraisoDark } from 'react-syntax-highlighter/styles/hljs/paraiso-dark';
|
||||
export { default as paraisoLight } from 'react-syntax-highlighter/styles/hljs/paraiso-light';
|
||||
export { default as pojoaque } from 'react-syntax-highlighter/styles/hljs/pojoaque';
|
||||
export { default as purebasic } from 'react-syntax-highlighter/styles/hljs/purebasic';
|
||||
export { default as qtcreatorDark } from 'react-syntax-highlighter/styles/hljs/qtcreator_dark';
|
||||
export { default as qtcreatorLight } from 'react-syntax-highlighter/styles/hljs/qtcreator_light';
|
||||
export { default as railscasts } from 'react-syntax-highlighter/styles/hljs/railscasts';
|
||||
export { default as rainbow } from 'react-syntax-highlighter/styles/hljs/rainbow';
|
||||
export { default as routeros } from 'react-syntax-highlighter/styles/hljs/routeros';
|
||||
export { default as schoolBook } from 'react-syntax-highlighter/styles/hljs/school-book';
|
||||
export { default as solarizedDark } from 'react-syntax-highlighter/styles/hljs/solarized-dark';
|
||||
export { default as solarizedLight } from 'react-syntax-highlighter/styles/hljs/solarized-light';
|
||||
export { default as sunburst } from 'react-syntax-highlighter/styles/hljs/sunburst';
|
||||
export { default as tomorrowNightBlue } from 'react-syntax-highlighter/styles/hljs/tomorrow-night-blue';
|
||||
export { default as tomorrowNightBright } from 'react-syntax-highlighter/styles/hljs/tomorrow-night-bright';
|
||||
export { default as tomorrowNightEighties } from 'react-syntax-highlighter/styles/hljs/tomorrow-night-eighties';
|
||||
export { default as tomorrowNight } from 'react-syntax-highlighter/styles/hljs/tomorrow-night';
|
||||
export { default as tomorrow } from 'react-syntax-highlighter/styles/hljs/tomorrow';
|
||||
export { default as vs } from 'react-syntax-highlighter/styles/hljs/vs';
|
||||
export { default as vs2015 } from 'react-syntax-highlighter/styles/hljs/vs2015';
|
||||
export { default as xcode } from 'react-syntax-highlighter/styles/hljs/xcode';
|
||||
export { default as xt256 } from 'react-syntax-highlighter/styles/hljs/xt256';
|
||||
export { default as zenburn } from 'react-syntax-highlighter/styles/hljs/zenburn';
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/agate' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/agate' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/androidstudio' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/androidstudio' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/arduino-light' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/arduino-light' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/arta' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/arta' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/ascetic' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/ascetic' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/atelier-cave-dark' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/atelier-cave-dark' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/atelier-cave-light' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/atelier-cave-light' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/atelier-dune-dark' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/atelier-dune-dark' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/atelier-dune-light' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/atelier-dune-light' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/atelier-estuary-dark' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/atelier-estuary-dark' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/atelier-estuary-light' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/atelier-estuary-light' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/atelier-forest-dark' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/atelier-forest-dark' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/atelier-forest-light' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/atelier-forest-light' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/atelier-heath-dark' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/atelier-heath-dark' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/atelier-heath-light' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/atelier-heath-light' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/atelier-lakeside-dark' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/atelier-lakeside-dark' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/atelier-lakeside-light' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/atelier-lakeside-light' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/atelier-plateau-dark' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/atelier-plateau-dark' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/atelier-plateau-light' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/atelier-plateau-light' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/atelier-savanna-dark' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/atelier-savanna-dark' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/atelier-savanna-light' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/atelier-savanna-light' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/atelier-seaside-dark' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/atelier-seaside-dark' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/atelier-seaside-light' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/atelier-seaside-light' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/atelier-sulphurpool-dark' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/atelier-sulphurpool-dark' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/atelier-sulphurpool-light' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/atelier-sulphurpool-light' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/atom-one-dark' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/atom-one-dark' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/atom-one-light' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/atom-one-light' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/brown-paper' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/brown-paper' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/codepen-embed' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/codepen-embed' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/color-brewer' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/color-brewer' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/darcula' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/darcula' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/dark' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/dark' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/darkula' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/darkula' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/default-style' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/default-style' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/docco' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/docco' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/dracula' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/dracula' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/far' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/far' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/foundation' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/foundation' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/github-gist' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/github-gist' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/github' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/github' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/googlecode' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/googlecode' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/grayscale' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/grayscale' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/gruvbox-dark' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/gruvbox-dark' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/gruvbox-light' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/gruvbox-light' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/hopscotch' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/hopscotch' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/hybrid' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/hybrid' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/idea' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/idea' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/ir-black' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/ir-black' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/kimbie.dark' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/kimbie.dark' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/kimbie.light' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/kimbie.light' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/magula' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/magula' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/mono-blue' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/mono-blue' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/monokai-sublime' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/monokai-sublime' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/monokai' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/monokai' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/obsidian' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/obsidian' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/ocean' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/ocean' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/paraiso-dark' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/paraiso-dark' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/paraiso-light' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/paraiso-light' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/pojoaque' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/pojoaque' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/purebasic' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/purebasic' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/qtcreator_dark' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/qtcreator_dark' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/qtcreator_light' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/qtcreator_light' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/railscasts' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/railscasts' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/rainbow' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/rainbow' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/school-book' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/routeros' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/solarized-dark' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/school-book' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/solarized-light' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/solarized-dark' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/sunburst' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/solarized-light' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/tomorrow-night-blue' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/sunburst' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/tomorrow-night-bright' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/tomorrow-night-blue' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/tomorrow-night-eighties' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/tomorrow-night-bright' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/tomorrow-night' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/tomorrow-night-eighties' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/tomorrow' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/tomorrow-night' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/vs' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/tomorrow' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/xcode' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/vs' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/xt256' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/vs2015' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/dist/styles/zenburn' {
|
||||
declare module 'react-syntax-highlighter/styles/hljs/xcode' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/styles/hljs/xt256' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/styles/hljs/zenburn' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
declare module 'react-syntax-highlighter/styles/prism' {
|
||||
export { default as atomDark } from 'react-syntax-highlighter/styles/prism/atom-dark';
|
||||
export { default as base16AteliersulphurpoolLight } from 'react-syntax-highlighter/styles/prism/base16-ateliersulphurpool.light';
|
||||
export { default as cb } from 'react-syntax-highlighter/styles/prism/cb';
|
||||
export { default as coy } from 'react-syntax-highlighter/styles/prism/coy';
|
||||
export { default as darcula } from 'react-syntax-highlighter/styles/prism/darcula';
|
||||
export { default as dark } from 'react-syntax-highlighter/styles/prism/dark';
|
||||
export { default as duotoneDark } from 'react-syntax-highlighter/styles/prism/duotone-dark';
|
||||
export { default as duotoneEarth } from 'react-syntax-highlighter/styles/prism/duotone-earth';
|
||||
export { default as duotoneForest } from 'react-syntax-highlighter/styles/prism/duotone-forest';
|
||||
export { default as duotoneLight } from 'react-syntax-highlighter/styles/prism/duotone-light';
|
||||
export { default as duotoneSea } from 'react-syntax-highlighter/styles/prism/duotone-sea';
|
||||
export { default as duotoneSpace } from 'react-syntax-highlighter/styles/prism/duotone-space';
|
||||
export { default as funky } from 'react-syntax-highlighter/styles/prism/funky';
|
||||
export { default as ghcolors } from 'react-syntax-highlighter/styles/prism/ghcolors';
|
||||
export { default as hopscotch } from 'react-syntax-highlighter/styles/prism/hopscotch';
|
||||
export { default as okaidia } from 'react-syntax-highlighter/styles/prism/okaidia';
|
||||
export { default as pojoaque } from 'react-syntax-highlighter/styles/prism/pojoaque';
|
||||
export { default as prism } from 'react-syntax-highlighter/styles/prism/prism';
|
||||
export { default as solarizedlight } from 'react-syntax-highlighter/styles/prism/solarizedlight';
|
||||
export { default as tomorrow } from 'react-syntax-highlighter/styles/prism/tomorrow';
|
||||
export { default as twilight } from 'react-syntax-highlighter/styles/prism/twilight';
|
||||
export { default as vs } from 'react-syntax-highlighter/styles/prism/vs';
|
||||
export { default as xonokai } from 'react-syntax-highlighter/styles/prism/xonokai';
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/styles/prism/atom-dark' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/styles/prism/base16-ateliersulphurpool.light' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/styles/prism/cb' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/styles/prism/coy' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/styles/prism/darcula' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/styles/prism/dark' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/styles/prism/duotone-dark' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/styles/prism/duotone-earth' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/styles/prism/duotone-forest' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/styles/prism/duotone-light' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/styles/prism/duotone-sea' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/styles/prism/duotone-space' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/styles/prism/funky' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/styles/prism/ghcolors' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/styles/prism/hopscotch' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/styles/prism/okaidia' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/styles/prism/pojoaque' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/styles/prism/prism' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/styles/prism/solarizedlight' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/styles/prism/tomorrow' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/styles/prism/twilight' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/styles/prism/vs' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
declare module 'react-syntax-highlighter/styles/prism/xonokai' {
|
||||
const style: any;
|
||||
export default style;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
import * as React from 'react';
|
||||
import SyntaxHighlighter from 'react-syntax-highlighter';
|
||||
import { docco } from 'react-syntax-highlighter/dist/styles';
|
||||
import * as React from "react";
|
||||
import SyntaxHighlighter from "react-syntax-highlighter";
|
||||
import { docco } from "react-syntax-highlighter/styles/hljs";
|
||||
|
||||
function highlighter(): JSX.Element {
|
||||
const codeString: string =
|
||||
`class CPP {
|
||||
const codeString: string = `class CPP {
|
||||
private year: number;
|
||||
public constructor(private version: string) {
|
||||
this.year = Number(version.match(/.+\d+$/));
|
||||
@@ -14,5 +13,9 @@ function highlighter(): JSX.Element {
|
||||
}
|
||||
}
|
||||
`;
|
||||
return <SyntaxHighlighter language='javascript' style={docco}>{codeString}</SyntaxHighlighter>;
|
||||
}
|
||||
return (
|
||||
<SyntaxHighlighter language="javascript" style={docco}>
|
||||
{codeString}
|
||||
</SyntaxHighlighter>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user