This repository has been archived by the owner on Sep 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Move global DSL type definitions into an index
file.
#93
Closed
Closed
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
a29f29c
Move global DSL type definitions into an `index` file.
philcockfield bb4df1e
Exclude specs in master TS build operation.
philcockfield 42380ec
Comment out to get build passing.
philcockfield 149f99a
Rename index.ts to index.d.ts and write definition
frederickfogerty 8916203
Remove type definitions from typescript component
frederickfogerty 58c53a3
Update tsconfig.json
frederickfogerty 251b6fd
Fix typescript build step
frederickfogerty c95a8c3
Update tsconfig
frederickfogerty 9d16404
Allow namespaces
frederickfogerty 402508a
Added index.js file to export describe et al.
frederickfogerty 4db0157
Fix tslint and convert to module format
frederickfogerty b4f8f7b
Update typescript spec file
frederickfogerty 65fa2cf
Fix package.json
frederickfogerty 99ea7c1
Fix typescript definition
frederickfogerty 8faf56b
Fix lint
frederickfogerty File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
|
||
declare namespace UIHarness { | ||
import React = __React; | ||
type IUIHComponent = React.ReactElement<{}> | React.Component<{}, {}> | React.StatelessComponent<{}> | string; | ||
|
||
interface ICropMarks { | ||
(enabled: boolean): IUIHarnessContext; | ||
size(value: number): IUIHarnessContext; | ||
offset(value: number): IUIHarnessContext; | ||
} | ||
|
||
class IUIHarnessContext { | ||
public toValues(): {}; | ||
public reset(options: {}): void; | ||
public props(value: {}): {}; | ||
public context(value: {}): {}; | ||
public component(component: IUIHComponent): this; | ||
public unload(): this; | ||
|
||
public log(...value: any[]): this; | ||
|
||
// property setters | ||
public children(children: React.ReactType[] | React.ReactType): this; | ||
public childContextTypes(value: {}): this; | ||
public width(value: string | number): this; | ||
public height(value: string | number): this; | ||
public cropMarks: ICropMarks; // tslint:disable-line:member-ordering | ||
public margin(value: number): this; | ||
public align(value: string): this; // TODO: Type this.align() better | ||
public header(value: string): this; | ||
public footer(value: string): this; | ||
public hr(enabled: boolean): this; | ||
public backdrop(value: string | number): this; | ||
public background(value: string | number): this; | ||
public scroll(value: boolean | 'x' | 'y' | 'x:y'): this; | ||
public style(value: React.CSSProperties): this; | ||
} | ||
|
||
interface IActionType { (this: IUIHarnessContext): void; } | ||
|
||
interface IBDDFunction { | ||
(label: string, action?: IActionType): void; | ||
(action: IActionType): void; | ||
} | ||
|
||
} | ||
|
||
export declare var describe: UIHarness.IBDDFunction; | ||
export declare var before: UIHarness.IBDDFunction; | ||
export declare var section: UIHarness.IBDDFunction; | ||
export declare var it: UIHarness.IBDDFunction; | ||
|
||
declare var defaultExport: { start: any, build: any }; | ||
export default defaultExport; | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Freak'in BEAUTIFUL!!!! 🎱 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import server from './server/index.js'; | ||
import bdd from 'js-bdd'; | ||
|
||
// Server API - Maintain backwards compatibility | ||
export default { | ||
start: server.start, | ||
build: server.build, | ||
}; | ||
|
||
export const before = bdd.before; | ||
export const describe = bdd.describe; | ||
export const it = bdd.it; | ||
export const section = bdd.section; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
"quotemark": [ | ||
true, "single" | ||
], | ||
"jsx-no-lambda": true | ||
"jsx-no-lambda": true, | ||
"no-namespace": false | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet - new version. That has
async/await
I assume. Will update my other references to this too.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, still open microsoft/TypeScript#9175