This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
refactor(editor): restructure plugins config API #654
Annotations
5 errors and 1 warning
Run yarn lint:tsc:
src/frontend/editor.tsx#L25
Property 'customPlugins' does not exist on type 'SerloEditorProps'.
|
Run yarn lint:tsc:
src/frontend/editor.tsx#L34
Type '{ children: (editor: BaseEditor) => Element; pluginsConfig: PluginsConfig; customPlugins: any; initialState: { plugin: string; } & { state?: unknown; }; }' is not assignable to type 'IntrinsicAttributes & SerloEditorProps'.
|
Run yarn lint:tsc:
src/frontend/plugins/plugins-config.ts#L4
Type '{ box: { allowedPlugins: string[]; }; multimedia: { explanation: { plugin: EditorPluginType; config: { allowedPlugins: EditorPluginType[]; }; }; allowedPlugins: string[]; }; spoiler: { ...; }; table: { ...; }; general: { ...; }; }' is not assignable to type 'PluginsConfig'.
|
Run yarn lint:tsc:
src/frontend/serlo-editor.tsx#L51
Type '{ document: { plugin: string; } & { state?: unknown; }; customPlugins: ({ type: string; plugin: EditorPlugin<StringStateType, SerloInjectionConfig>; renderer: (props: EditorSerloInjectionDocument) => Element; visibleInSuggestions: boolean; icon: Element; } | { ...; })[]; }' is not assignable to type 'IntrinsicAttributes & SerloRendererProps'.
|
Run yarn lint:tsc
Process completed with exit code 2.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Loading