mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
remove prototype def and make param optional
This commit is contained in:
parent
9d4aa5c00e
commit
f47826178d
@ -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: [
|
||||
|
||||
6
types/apostrophe/index.d.ts
vendored
6
types/apostrophe/index.d.ts
vendored
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user