fix lint
This commit is contained in:
parent
cfa6efc6ed
commit
94d944bd68
25 changed files with 131 additions and 118 deletions
|
@ -4,7 +4,7 @@ import type { INodeRendererMap } from "./types";
|
|||
|
||||
export type IReactMarkdownThemeScheme = "lighten" | "darken" | string;
|
||||
|
||||
export interface IReactMarkdownViewModelProps {
|
||||
export interface IReactMarkdownViewModelProperties {
|
||||
/**
|
||||
* Link / Image reference definitions.
|
||||
*/
|
||||
|
@ -37,10 +37,10 @@ export class ReactMarkdownViewModel extends ViewModel {
|
|||
public readonly showCodeLineno$: State<boolean>;
|
||||
public readonly themeScheme$: State<IReactMarkdownThemeScheme>;
|
||||
|
||||
constructor(props: IReactMarkdownViewModelProps) {
|
||||
constructor(properties: IReactMarkdownViewModelProperties) {
|
||||
super();
|
||||
|
||||
const { definitionMap, rendererMap, showCodeLineno, themeScheme } = props;
|
||||
const { definitionMap, rendererMap, showCodeLineno, themeScheme } = properties;
|
||||
this.definitionMap$ = new State(definitionMap);
|
||||
this.rendererMap$ = new State(rendererMap);
|
||||
this.showCodeLineno$ = new State<boolean>(showCodeLineno);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue