Skip to content

Commit

Permalink
Actually allow no params
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-matt-hillsdon committed Mar 26, 2024
1 parent 8723724 commit fddf5a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ export interface PythonEditorPluginConfig {
}
}

export const pythonEditor = definePlugin((config: PythonEditorPluginConfig | undefined = {}) => {
export const pythonEditor = definePlugin((config?: PythonEditorPluginConfig) => {
// eslint-disable-next-line no-param-reassign
config = config ?? {}
const types = [
portableTextFactory(config),
pythonIdea,
Expand Down

0 comments on commit fddf5a0

Please sign in to comment.