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