diff --git a/CHANGELOG.md b/CHANGELOG.md index c750fe3..73e1aab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Added an optional `"syntax"` field to CSSCustomProperty to describe the property syntax using CSS Properties and Values API's syntax strings. Fixes https://github.com/webcomponents/custom-elements-manifest/issues/68 +- Added InterfaceDeclaration. Fixes https://github.com/webcomponents/custom-elements-manifest/issues/76 + ### Fixed diff --git a/schema.d.ts b/schema.d.ts index 73f0258..1d45f63 100644 --- a/schema.d.ts +++ b/schema.d.ts @@ -132,7 +132,8 @@ export type Declaration = | MixinDeclaration | VariableDeclaration | CustomElementDeclaration - | CustomElementMixinDeclaration; + | CustomElementMixinDeclaration + | InterfaceDeclaration; /** * A reference to an export of a module. @@ -386,6 +387,34 @@ export interface TypeReference extends Reference { end?: number; } +/** + * An interface that describes the properties and methods of an object. + */ +export interface InterfaceDeclaration { + kind: 'interface'; + + name: string; + + /** + * A markdown summary suitable for display in a listing. + */ + summary?: string; + + /** + * A markdown description of the class. + */ + description?: string; + + /** + * The interfaces that this interface extends. + */ + supertypes?: Array; + + members?: Array; + + source?: SourceReference; +} + /** * The common interface of classes and mixins. */