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
(def data { | |
:mock-all? false | |
:mocks [ | |
{:path "api/test/json", :type :json :status 200 :data {"code" 200, "message" "This is a test json message in EDN"}} | |
{:path "api/test/file", :type :file :status 200 :file "user-info.json"} | |
{:path "api/test/text", :type :text :status 200 :text "user-info.json"} | |
] | |
:sites { | |
"api" {:target :apis} | |
"web" {:target :proxy, :path "/web", :host "http://localhost:8200"} |
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
let a ={ | |
b: { | |
c:1 | |
} | |
} | |
type A = typeof a | |
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
check-circle | |
check-circle-o | |
close-circle | |
close-circle-o | |
default | |
down | |
exclamation-circle | |
exclamation-circle-o | |
info-circle |
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
✖ 「atl」: Checking finished with 31 errors | |
[at-loader] ../node_modules/@types/react-router/index.d.ts:104:55 | |
TS2344: Type 'keyof T' does not satisfy the constraint 'string'. | |
Type 'string | number | symbol' is not assignable to type 'string'. | |
Type 'number' is not assignable to type 'string'. | |
[at-loader] ../node_modules/@types/react-router-dom/index.d.ts:15:5 | |
TS2305: Module '"../../../../../../../Users/chen/work/web/node_modules/@types/react-router"' has no exported member 'generatePath'. | |
[at-loader] ./ts/report/models/component.ts:55:23 |
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
if (symbol.flags & (32 /* Class */ | 64 /* Interface */)) { | |
if (symbol.valueDeclaration && symbol.valueDeclaration.parent == null) { | |
console.log(node) <---- log | |
} | |
if (symbol.valueDeclaration && ts.isBinaryExpression(symbol.valueDeclaration.parent)) { | |
var jsdocType = getJSDocTypeReference(node, symbol, typeArguments); | |
if (jsdocType) { | |
return jsdocType; | |
} | |
} |
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
import produce from "immer"; | |
export interface ImmerStateFunc<S> { | |
(f: ((s: S) => void)): Promise<any>; | |
} | |
export interface MergeStateFunc<S> { | |
(partialState: Partial<S>): Promise<any>; | |
} |
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
// get | |
export function safeGet<T, K1 extends keyof T>(x: T, k1: K1): T[K1] { | |
if (x != null) { | |
return x[k1]; | |
} | |
return null; | |
} | |
export function safeGet2<T, K1 extends keyof T, K2 extends keyof (T[K1])>(x: T, k1: K1, k2: K2) { |
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
=>> brew list | |
ack gettext libidn2 nginx python | |
adns ghc libksba node@10 python3 | |
aspcud git libpng npth python@2 | |
bash gmp libtasn1 ocaml readline | |
bash-completion gnupg libtiff ocamlbuild rlwrap | |
camlp4 gnutls libtool opam ruby | |
clasp go libunistring openssl sphinx-doc | |
clingo graphviz libusb openssl@1.1 sqlite | |
clojure gringo libyaml p11-kit tcpflow |
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
import React from "react"; | |
import produce from "immer"; | |
// get type of partial of an object with type T | |
export type IPartialObject<T> = { [K in keyof T]?: T[K] }; | |
export interface ImmerStateFunc<S> { | |
(f: IPartialObject<S> | ((s: S) => void), callback?: () => void): void; | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>respo</groupId> | |
<artifactId>inflow-popup</artifactId> | |
<version>0.2.5</version> | |
<name>inflow-popup</name> | |
<scm> | |
<connection>scm:git:git@github.com:Respo/inflow-popup.git</connection> |