These rules are adopted from the AngularJS commit conventions.
This file contains hidden or 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
| declare global { | |
| export type Stringified<T> = string & { | |
| [P in keyof T]: { '_ value': T[P] }; | |
| // [P in keyof T]: T[P] | |
| }; | |
| export interface JSON { | |
| // stringify(value: any, replacer?: (key: string, value: any) => any, space?: string | number): string; | |
| stringify<T>(value: T, replacer?: (key: string, value: any) => any, space?: string | number): string & Stringified<T>; | |
| // parse(text: string, reviver?: (key: any, value: any) => any): any; | |
| parse<T>(text: Stringified<T>, reviver?: (key: any, value: any) => any): T; |
This file contains hidden or 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
| export class ImageUtil { | |
| constructor() { | |
| } | |
| init() { | |
| window.URL = window.URL || webkitURL; | |
| } |
This file contains hidden or 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
| export class TreeUtil<T extends TreeNode<T>> { | |
| map: {[k: string]: number} = {}; | |
| roots: T[] = []; | |
| /** | |
| * @field status | |
| * @type | |
| * 0 - 未成功执行 `config` 方法; | |
| * 1 - 已成功执行 `config` 方法; | |
| */ |
###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com