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 type KeysToTrue<T> = { | |
[P in Key<T>]: true; | |
} | |
export type Key<T> = keyof T | |
export type Mapping<T, S> = { | |
[P in Key<T>]: S | |
} |
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 module 'express-session' { | |
import express = require('express'); | |
import node = require('events'); | |
function session(options?: session.SessionOptions): express.RequestHandler; | |
namespace session { | |
export interface SessionOptions { | |
secret: string; | |
name?: string; |
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
// A.ts | |
abstract class A { | |
public static create(t: boolean) { | |
//noinspection TsLint | |
const b = new D(); | |
return t ? new B() : new C(); | |
} | |
abstract foo(): string |
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
// A.ts | |
abstract class A { | |
public static create(t: boolean) { | |
//noinspection TsLint | |
const b = new D(); | |
return t ? new B() : new C(); | |
} | |
abstract foo(): string |
NewerOlder