Skip to content

LLM Resources

@dovenv/todo - API documentation โ€‹

Classes โ€‹

Todo โ€‹

Constructors โ€‹

new Todo() โ€‹
ts
new Todo(__namedParameters: {
  opts: Config;
  utils: CommandSuper;
 }): Todo
Parameters โ€‹
ParameterType
__namedParametersobject
__namedParameters.opts?Config
__namedParameters.utilsCommandSuper
Returns โ€‹

Todo

Methods โ€‹

run() โ€‹
ts
run(pattern?: string[]): Promise<undefined | TodoComment[]>
Parameters โ€‹
ParameterType
pattern?string[]
Returns โ€‹

Promise<undefined | TodoComment[]>

Properties โ€‹

PropertyType
optsundefined | Config
utilsCommandSuper

Functions โ€‹

todoPlugin() โ€‹

ts
function todoPlugin(params?: Config): Config

A plugin for dovenv to get TODOs in a workspace.

Parameters โ€‹

ParameterTypeDescription
params?ConfigConfiguration for the plugin.

Returns โ€‹

Config

  • The plugin.

Example โ€‹

ts
import { defineConfig } from '@dovenv/core'
import { todoPlugin } from '@dovenv/todo'
export default defineConfig( todoPlugin( {
    example : {
      input : [ 'src/*.{ts,tsx,js,jsx,md}' ],
    },
 } )).

Type Aliases โ€‹

Config โ€‹

ts
type Config: { [key in string]: Object };

References โ€‹

default โ€‹

Renames and re-exports todoPlugin