mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 06:50:19 +00:00
remove prototype def and make param optional
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { AposModuleOptions } from "apostrophe";
|
||||
|
||||
type CustomModules = "first-custom-widgets" | "second-custom-widgets";
|
||||
type CustomModules = "first-custom-widgets";
|
||||
|
||||
const firstCustomWidgetOptions: AposModuleOptions<{}> = {
|
||||
const firstCustomWidgetOptions: AposModuleOptions = {
|
||||
extend: "apostrophe-widgets",
|
||||
label: "First Custom Widget",
|
||||
addFields: [
|
||||
|
||||
Vendored
+2
-4
@@ -2,7 +2,7 @@
|
||||
// Project: https://github.com/apostrophecms/apostrophe#readme
|
||||
// Definitions by: Aaron Holderman <https://github.com/afholderman>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
export = apostrophe;
|
||||
export as namespace apos;
|
||||
@@ -15,8 +15,6 @@ declare namespace apostrophe {
|
||||
modules: string[];
|
||||
};
|
||||
|
||||
const prototype: {};
|
||||
|
||||
const ui: {
|
||||
globalBusy: (state: any) => any;
|
||||
link: (
|
||||
@@ -278,7 +276,7 @@ declare namespace apostrophe {
|
||||
| "apostrophe-widgets";
|
||||
|
||||
// Pass in custom modules to AposModuleOptions to allow them in extend
|
||||
interface AposModuleOptions<C> {
|
||||
interface AposModuleOptions<C = {}> {
|
||||
extend: AposCoreModules | C;
|
||||
name?: string;
|
||||
label: string;
|
||||
|
||||
Reference in New Issue
Block a user