mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
28 lines
643 B
TypeScript
28 lines
643 B
TypeScript
import { AposModuleOptions } from "apostrophe";
|
|
|
|
type CustomModules = "first-custom-widgets";
|
|
|
|
const firstCustomWidgetOptions: AposModuleOptions = {
|
|
extend: "apostrophe-widgets",
|
|
label: "First Custom Widget",
|
|
addFields: [
|
|
{
|
|
name: "title",
|
|
label: "Custom Widget Title",
|
|
type: "string"
|
|
}
|
|
]
|
|
};
|
|
|
|
const secondCustomWidgetOptions: AposModuleOptions<CustomModules> = {
|
|
extend: "first-custom-widgets",
|
|
label: "Second Custom Widget",
|
|
addFields: [
|
|
{
|
|
name: "title",
|
|
label: "Custom Widget Title",
|
|
type: "string"
|
|
}
|
|
]
|
|
};
|