mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00

Allow a plugin developer to get back constants values, and reset constants deletions or additions.
13 lines
411 B
TypeScript
13 lines
411 B
TypeScript
import { ConstantManager } from '@shared/models/plugins/server/plugin-constant-manager.model'
|
|
|
|
export interface PluginVideoCategoryManager extends ConstantManager<number> {
|
|
/**
|
|
* @deprecated use `addConstant` instead
|
|
*/
|
|
addCategory: (categoryKey: number, categoryLabel: string) => boolean
|
|
|
|
/**
|
|
* @deprecated use `deleteConstant` instead
|
|
*/
|
|
deleteCategory: (categoryKey: number) => boolean
|
|
}
|