question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TS2551 [ERROR]: Property 'integer' does not exist on type 'Fields'. Did you mean 'INTEGER'?

See original GitHub issue
// Works
name: DataTypes.string(25),  
_age: { type: DataTypes.INTEGER, length: 2 }, 

// Throws error
age: DataTypes.integer(2),

Versions: denodb: v1.0.26 deno: 1.8.3

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
stillalivxcommented, Apr 15, 2021

@eveningkid. Okay, on my way!

1reaction
stillalivxcommented, Apr 13, 2021

It looks like there is not a shortcut for DataTypes.INTEGER. In docs just exist string, enum, and decimal.

@eveningkid should we add this shortcut?

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeScript: Property does not exist on type '{}' - Stack Overflow
In the ts file I'm getting an error as follows: Property 'fadeDiv' does not exist on type '{}'. I think I have the...
Read more >
TypeScript errors and how to fix them
A list of common TypeScript errors and how to fix them.
Read more >
property 'title' does not exist on type 'never'.ts(2339) - You.com
I have a dummy JSON file which is loaded as the Vue app is loaded: The JSON file looks like this: { " ......
Read more >
How to fix 'Property does not exist on type Window in ...
If you've been asking 'How do I fix the "Property does not exist on type Window in TypeScript" error?' then this is the...
Read more >
How to resolve the error ' Error:(54,6) TS2339:property 'name ...
Two ways Let's assume you have a variable named x of type object, so somewhere you ... TS2339:property 'name' does not exist on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found