chore: cleanup

This commit is contained in:
Nathan Walker
2020-07-04 01:12:55 -07:00
parent 9341cd9554
commit 1525c89733
274 changed files with 1755 additions and 2733 deletions

View File

@@ -1,8 +1,11 @@
import { Placeholder as PlaceholderDefinition, CreateViewEventData } from ".";
import { View, EventData, CSSType } from "../core/view";
import { CreateViewEventData } from "./placeholder-common";
import { View, CSSType } from "../core/view";
import { EventData } from "../../data/observable";
export * from './placeholder-common';
@CSSType("Placeholder")
export class Placeholder extends View implements PlaceholderDefinition {
export class Placeholder extends View {
public static creatingViewEvent = "creatingView";
public createNativeView() {

View File

@@ -1,9 +1,7 @@
/**
* Contains the Placeholder class, which is used to add a native view to the visual tree.
* @module "ui/placeholder"
*/ /** */
import { View } from "../core/view";
import { EventData } from "../../data/observable";
import { View, EventData } from "../core/view";
export * from './placeholder-common';
/**
* Represents a Placeholder, which is used to add a native view to the visual tree.

View File

@@ -1,7 +1,10 @@
import { Placeholder as PlaceholderDefinition, CreateViewEventData } from ".";
import { View, EventData } from "../core/view";
import { View } from "../core/view";
import { CreateViewEventData } from "./placeholder-common";
import { EventData } from "../../data/observable";
export class Placeholder extends View implements PlaceholderDefinition {
export * from './placeholder-common';
export class Placeholder extends View {
public static creatingViewEvent = "creatingView";
public createNativeView() {

View File

@@ -1,5 +0,0 @@
{
"name": "placeholder",
"main": "placeholder",
"types": "placeholder.d.ts"
}

View File

@@ -0,0 +1,13 @@
import { EventData } from "../../data/observable";
export interface CreateViewEventData extends EventData {
/**
* The native view that should be added to the visual tree.
*/
view: any;
/**
* An optional context for creating the view.
*/
context?: any;
}