Open AnyhowStep opened 4 years ago
Instead of,
export const concat = makeOperator1ToN<OperatorType.CONCAT, string, string>( OperatorType.CONCAT, tm.string(), TypeHint.STRING );
Use this,
export const concat : Operator1ToN<string, string> = makeOperator1ToN<OperatorType.CONCAT, string, string>( OperatorType.CONCAT, tm.string(), TypeHint.STRING );
We cannot rely on type inference. We need to explicitly add type annotations or AMD declaration emit will break.
Keep an eye on this, https://github.com/microsoft/TypeScript/issues/37267
Instead of,
Use this,
We cannot rely on type inference. We need to explicitly add type annotations or AMD declaration emit will break.
Keep an eye on this, https://github.com/microsoft/TypeScript/issues/37267