/
githubmirror
/
hexo
Обзор
Документация
Войти
/
githubmirror
/
hexo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
lib/plugins/processor/index.ts
14 строк
298 B
Pcrab
Refactor types (#5178)
20 апр 2023, 16:56
Не верифицирован
20 апр 2023, 16:56
725422a
Код
Авторство
О чём код?
import type Hexo from '../../hexo'; export = (ctx: Hexo) => { const { processor } = ctx.extend; function register(name: string) { const obj = require(`./${name}`)(ctx); processor.register(obj.pattern, obj.process); } register('asset'); register('data'); register('post'); };