Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
That is an issue, it should behave like the C# client.
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
On Wed, Oct 18, 2017 at 9:34 AM, Troy <tza...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
Our package exposes declarations from each of those, so any user of our browserify-typescript-extension package needs to have these dependencies as well. For that reason, we used "dependencies" and not "devDependencies", because otherwise our consumers would have needed to manually install those packages.
/// <reference types="node" />/// <reference types="request-promise" />/// <reference types="request" />/// <reference types="async-lock" />/// <reference types="bluebird" />import * as BluebirdPromise from 'bluebird';import * as AsyncLock from 'async-lock';import * as EventEmitter from 'events';import * as Request from 'request';import * as RequestPromise from 'request-promise';
node_modules/ravendb/lib/ravendb-node.d.ts(2,1): error TS2688: Cannot find type definition file for 'request-promise'.node_modules/ravendb/lib/ravendb-node.d.ts(3,1): error TS2688: Cannot find type definition file for 'request'.node_modules/ravendb/lib/ravendb-node.d.ts(4,1): error TS2688: Cannot find type definition file for 'async-lock'.node_modules/ravendb/lib/ravendb-node.d.ts(5,1): error TS2688: Cannot find type definition file for 'bluebird'.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
>src/Documents/DocumentStore.ts(168,5): error TS2322: Type 'string | void' is not assignable to type 'string'.
Type 'void' is not assignable to type 'string'.
return this._generator.generateDocumentId(document, documentType, database)
.then((id: string) => {
PromiseResolver.resolve<string>(id, null, callback);
return id;
})
.catch((error: RavenException) => PromiseResolver.reject(error, null, callback));
src/Database/Commands/PatchCommand.ts(62,52): error TS2339: Property 'includes' does not exist on type 'StatusCode[]'.src/Database/Operations/OperationAwaiter.ts(87,18): error TS2346: Supplied parameters do not match any signature of call target.
src/Documents/DocumentStore.ts(168,5): error TS2322: Type 'string | void' is not assignable to type 'string'. Type 'void' is not assignable to type 'string'.
src/Documents/Session/DocumentQuery.ts(208,5): error TS2322: Type 'void | T' is not assignable to type 'T'. Type 'void' is not assignable to type 'T'.src/Documents/Session/DocumentQuery.ts(218,18): error TS2346: Supplied parameters do not match any signature of call target.src/Documents/Session/DocumentQuery.ts(241,5): error TS2322: Type 'void | T' is not assignable to type 'T'. Type 'void' is not assignable to type 'T'.src/Documents/Session/DocumentQuery.ts(264,5): error TS2322: Type 'number | void' is not assignable to type 'number'. Type 'void' is not assignable to type 'number'.src/Documents/Session/DocumentQuery.ts(281,5): error TS2322: Type 'void | T[] | QueryResultsWithStatistics<T>' is not assignable to type 'T[] | QueryResultsWithStatistics<T>'. Type 'void' is not assignable to type 'T[] | QueryResultsWithStatistics<T>'.src/Documents/Session/DocumentQuery.ts(789,42): error TS2339: Property 'includes' does not exist on type 'string[]'.src/Documents/Session/DocumentSession.ts(138,5): error TS2322: Type 'void | T | T[]' is not assignable to type 'T | T[]'. Type 'void' is not assignable to type 'T | T[]'.src/Documents/Session/DocumentSession.ts(258,5): error TS2322: Type 'void | T' is not assignable to type 'T'. Type 'void' is not assignable to type 'T'.src/Documents/Session/Query/QueryBuilder.ts(859,61): error TS2339: Property 'includes' does not exist on type 'string[]'.src/Hilo/HiloIdGenerator.ts(84,18): error TS2346: Supplied parameters do not match any signature of call target.src/Http/Request/NodeSelector.ts(104,15): error TS2339: Property 'includes' does not exist on type 'ServerNode[]'.src/Http/Request/RequestExecutor.ts(221,11): error TS2339: Property 'includes' does not exist on type 'StatusCode[]'.src/Http/Request/RequestExecutor.ts(295,14): error TS2346: Supplied parameters do not match any signature of call target.src/Http/Topology.ts(37,47): error TS2345: Argument of type '(url: string, tag: string) => number' is not assignable to parameter of type 'ObjectIterator<string, any>'. Types of parameters 'url' and 'value' are incompatible. Type 'number | ((index: number) => number) | ((...strings: string[]) => string) | ((searchString: strin...' is not assignable to type 'string'. Type 'number' is not assignable to type 'string'.src/Utility/StringUtil.ts(50,46): error TS2339: Property 'includes' does not exist on type 'string[]'.src/Utility/StringUtil.ts(58,66): error TS2339: Property 'includes' does not exist on type 'string[]'.
store.conventions.addDocumentInfoResolver({
resolveConstructor: (typeName: string): DocumentConstructor =>
<DocumentConstructor>require(`./models/${typeName}`)[typeName]
});
{
"version": "2.5.3",
"compilerOptions": {
"target": "es2015",
"module": "commonjs",
"declaration": true,
"outDir": "lib/",
"sourceMap": false,
"lib": ["dom", "es7" ]
},
"files": [
"./src/ravendb-node.ts"
],
"exclude": [
"node_modules",
"lib"
],
"lib": ["dom", "es7" ]
}
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.