Skip to content
#

ts

Here are 668 public repositories matching this topic...

cspotcode
cspotcode commented Feb 14, 2020

Desired Behavior

ts-node has a flag that enables diagnostic logging from ts-node (not TypeScript) to either a file on disk or to stdout. ts-node's API allows passing a reportDiagnostic function that is called for all ts-node diagnostics, allowing even more customizable reporting. This should match the UX of TypeScript's own DiagnosticReporter hooks.

This will enable end-users to se

samirbr
samirbr commented Feb 13, 2018

Typescript warns Expected 0 arguments, but got 1. when I pass arguments for a protobuf message constructor. google-protobuf implementation of protobuf Message accept arguments.

// input.proto
message InputType {
  string name = 1;
  string email = 2;
}

// errors in typescript

new InputType(['my name', 'my email'])

Consider adding a constructor method to the ty

hasezoey
hasezoey commented Oct 14, 2019

Discriminators need:

  • better tests (because tests are examples of how to use it too)
  • better / actual documentation (#16)
  • rework the already existing test(s) to be better understandable

specific question for @B-Stefan:
(i already asked on discord, but remade it to here)
why does the (base) model of inheritanceClass(tests/models) have an discriminatorKey which is type of `n

dphrag
dphrag commented Mar 4, 2020

I'm getting Property '_id' does not exist on type (or Property 'id' does not exist on type) on an array

blah: Type.array().of({
etc: Type.string()
})

blah._id => no property.

All arrays in mongoose by default have _id. Am I doing something wrong?

typescript-coverage-report
tsaiDavid
tsaiDavid commented Mar 25, 2020

Describe the bug

In the provided example, I am expecting the tool to fail since the expected actual coverage is 92%, and my provided minimum is 99%. This works when using the CLI option, but not when using the typeCoverage property in package.json.

Provided config:

  "typeCoverage": {
    "atLeast": 99
  },

CLI output when using typeCoverage (wrong behavior)

Improve this page

Add a description, image, and links to the ts topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the ts topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.