@dovenv/todo
- API documentation โ
Classes โ
Todo โ
Constructors โ
new Todo() โ
ts
new Todo(__namedParameters: {
opts: Config;
utils: CommandSuper;
}): Todo
Parameters โ
Parameter | Type |
---|---|
__namedParameters | object |
__namedParameters.opts ? | Config |
__namedParameters.utils | CommandSuper |
Returns โ
Methods โ
run() โ
ts
run(pattern?: string[]): Promise<undefined | TodoComment[]>
Parameters โ
Parameter | Type |
---|---|
pattern ? | string [] |
Returns โ
Promise
<undefined
| TodoComment
[]>
Properties โ
Property | Type |
---|---|
opts | undefined | Config |
utils | CommandSuper |
Functions โ
todoPlugin() โ
ts
function todoPlugin(params?: Config): Config
A plugin for dovenv to get TODOs in a workspace.
Parameters โ
Parameter | Type | Description |
---|---|---|
params ? | Config | Configuration 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