UNPKG

1.1 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
4 * This code may only be used under the BSD style license found at
5 * http://polymer.github.io/LICENSE.txt
6 * The complete set of authors may be found at
7 * http://polymer.github.io/AUTHORS.txt
8 * The complete set of contributors may be found at
9 * http://polymer.github.io/CONTRIBUTORS.txt
10 * Code distributed by Google as part of the polymer project is also
11 * subject to an additional IP rights grant found at
12 * http://polymer.github.io/PATENTS.txt
13 */
14import { Property, ScannedProperty } from './model';
15export interface ScannedMethod extends ScannedProperty {
16 params?: MethodParam[];
17 return?: {
18 type?: string;
19 desc?: string;
20 };
21}
22export interface Method extends Property {
23 readonly params?: MethodParam[];
24 readonly return?: {
25 type?: string;
26 desc?: string;
27 };
28}
29export interface MethodParam {
30 readonly name: string;
31 readonly type?: string;
32 readonly defaultValue?: string;
33 readonly rest?: boolean;
34 readonly description?: string;
35}