Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

createToggleListCommand

Returns a command function that wraps the selection in a list with the given type and attributes, or change the list kind if the selection is already in another kind of list, or unwrap the selected list if otherwise.

function createToggleListCommand<T extends ListAttributes = ListAttributes>(attrs: T): Command;
§
createToggleListCommand<T extends ListAttributes = ListAttributes>(attrs: T): Command
[src]

§Type Parameters

§Parameters

§
attrs: T
[src]

§Return Type