UNPKG

1.39 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 * as jsdoc from '../javascript/jsdoc';
15import { JsAstNode, SourceRange } from '../model/model';
16import { Privacy, ScannedFeature } from './model';
17import { Warning } from './warning';
18export interface ScannedProperty extends ScannedFeature {
19 name: string;
20 type?: string;
21 privacy: Privacy;
22 'default'?: string;
23 readOnly?: boolean;
24 changeEvent?: string;
25 warnings: Warning[];
26 astNode: JsAstNode | undefined;
27}
28export interface Property {
29 readonly name: string;
30 readonly type?: string;
31 readonly description?: string;
32 readonly jsdoc?: jsdoc.Annotation;
33 privacy: Privacy;
34 readonly 'default'?: string;
35 readonly readOnly?: boolean;
36 readonly sourceRange?: SourceRange;
37 readonly inheritedFrom?: string;
38 readonly changeEvent?: string;
39 readonly astNode: JsAstNode | undefined;
40}