/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
widgets/hello-world/widget.ts
24 строки
426 B
Marco Ciampini
ESLint: Replace strict config with bulk suppressions (#81248)
07 авг 2026, 14:34
Не верифицирован
07 авг 2026, 14:34
7f43eaf
Код
Авторство
О чём код?
import type { WidgetAttributeField } from '@wordpress/widget-primitives'; type HelloWorldWidgetAttributes = { message?: string; }; /** * Widget type definition */ export default { name: 'core/hello-world', attributes: [ { id: 'message', label: 'Message', type: 'text', }, ] satisfies WidgetAttributeField< HelloWorldWidgetAttributes >[], example: { attributes: { message: 'Hello World', }, }, };