Skip to content

Commit

Permalink
[added] TypeScript declarations to build
Browse files Browse the repository at this point in the history
TypeScript requires that you export the interfaces used by any exported symbols.
  • Loading branch information
appsforartists committed Nov 16, 2016
1 parent b1f19f6 commit f0c2c0e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { Plan } from 'material-motion-runtime';

import MapScrollPositionToCSSValuePerformer from './MapScrollPositionToCSSValuePerformer';

interface MapScrollPositionToCSSValuePlanArgs {
export interface MapScrollPositionToCSSValuePlanArgs {
propertyName: string;
valueTemplate: string;
fromValue: number;
Expand Down
1 change: 1 addition & 0 deletions packages/experiments/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"include": ["./src/**/*"],
"exclude": ["**/*.test.*"],
"compilerOptions": {
"declaration": true,
"lib": [
"es2015",
"dom"
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/src/Runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
PlanAndTarget,
} from './types';

type ActivityListener = (kwargs: { isActive: boolean }) => any;
export type ActivityListener = (kwargs: { isActive: boolean }) => any;

/**
* A runtime is responsible for fulfilling Plans by delegating them to the
Expand Down
6 changes: 3 additions & 3 deletions packages/runtime/src/TokenGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
* under the License.
*/

interface Token {
export interface Token {
terminate(): void;
}

type TokenCountChangeListener = (kwargs: { count: number }) => void;
export type TokenCountChangeListener = (kwargs: { count: number }) => void;

interface TokenGeneratorArgs {
export interface TokenGeneratorArgs {
onTokenCountChange: TokenCountChangeListener;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/src/internal/makeCompoundKeySelector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* under the License.
*/

type Dict = {
export type Dict = {
[index:string]: any,
}

Expand Down
1 change: 1 addition & 0 deletions packages/runtime/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"include": ["./src/**/*"],
"exclude": ["**/*.test.*"],
"compilerOptions": {
"declaration": true,
"lib": [
"es2015",
"dom"
Expand Down

0 comments on commit f0c2c0e

Please sign in to comment.