You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In documentation you say that the url parameter of local method is defaulted to http://localhost:8000, but in TypeScript leave that field empty causes a compilation error because the url parameter is not marked as optional.
Code sample:
dynamoose.local();
// this causes:
//
// Expected 1 ar guments, but got 0.ts(2554)
// dynamoose.d.ts(7, 25): An argument for 'url' was not provided.
dynamoose.local("http://localhost:8000");
// this is ok
Yes, I believe that one or multiple 3rd party Dynamoose plugins are effecting this issue
No, I believe this issue is independent of any 3rd party Dynamoose plugins I'm using
Unknown, I'm unsure if Dynamoose plugins are effecting this issue
I am not using any Dynamoose plugins
Type (select 1):
Bug report
Feature suggestion
Question
Other suggestion
Something not listed here
Other:
I have read through the Dynamoose documentation before posting this issue
I have searched through the GitHub issues (including closed issues) and pull requests to ensure this issue has not already been raised before
I have searched the internet and Stack Overflow to ensure this issue hasn't been raised or answered before
I have tested the code provided and am confident it doesn't work as intended
I have ensured that all of my plugins that I'm using with Dynamoose are listed above
I have filled out all fields above
I am running the latest version of Dynamoose
The text was updated successfully, but these errors were encountered:
c3s4
changed the title
dyanomes.local without params cause compilation file in TypeScript
dynamoose.local without params cause compilation file in TypeScript
Mar 18, 2019
hweeks
pushed a commit
to hweeks/dynamoose
that referenced
this issue
Mar 18, 2019
Summary:
In documentation you say that the url parameter of
local
method is defaulted tohttp://localhost:8000
, but in TypeScript leave that field empty causes a compilation error because theurl
parameter is not marked as optional.Code sample:
Current output and behavior:
Compilation fail
Expected output and behavior:
Use the default value
Environment:
Operating System: MacOS
Operating System Version: 10.14.1 (18B75)
Node.js version (
node -v
): v8.10.0NPM version: (
npm -v
): 5.6.0Dynamoose version: 1.7.1
Dynamoose Plugins: --
Dynamoose Plugins:
Type (select 1):
Other:
The text was updated successfully, but these errors were encountered: