Commit 1d5a399d authored by Fred Eisele's avatar Fred Eisele
Browse files

synced with DT

parent 4edce821
Loading
Loading
Loading
Loading
+2 −0
Changes for .gitignore: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -17,3 +17,5 @@ bin-release/
# Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties`
# should NOT be excluded as they contain compiler settings and other important
# information for Eclipse / Flash Builder.

*.js
+4 −5
Changes for index.d.ts: 4 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
// Definitions by: Fred Eisele <https://github.com/phreed>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference path="../node/index.d.ts" />
/// <reference types="node" />

/**
### 0.8.1 Changelog (https://github.com/RubenVerborgh/N3)
@@ -16,11 +16,11 @@ Match samples from README.md

*/

declare module "n3" {

    import * as fs from "fs";
    import * as stream from "stream";

    namespace N3 {
declare namespace N3 {

        type ErrorCallback = (err: Error, result: any) => void;

@@ -113,7 +113,7 @@ declare module "n3" {
        }

        interface N3StoreWriter extends N3Writer {
            find(subject: string, predicate: string, object: string): Triple[];
        find(subject: string, predicate: string | null, object: string | null): Triple[];
        }
        function Store(): N3StoreWriter;

@@ -133,5 +133,4 @@ declare module "n3" {
    }

    export = N3;
}
+8 −10
Changes for n3-tests.ts: 8 added lines, 10 removed lines.
Original line number Diff line number Diff line
/// <reference path="./index.d.ts" />
/// <reference path="../node/index.d.ts" />

/// <reference types="node" />

/**
  [?] has correct naming convention
      I am not sure what the correct naming convention is.
      Is it n3.d.ts or index.d.ts?
  [x] has correct naming convention (index.d.ts)

  Run tsc with the tsconfig.json file modified as indicated.

  checked compilation succeeds  
   [+] tsc --noImplicitAny --target es5 ./index.d.ts
   [x] tsc --noImplicitAny --target es6 ./index.d.ts
   [+] --noImplicitAny --target es5 
   [x] --noImplicitAny --target es6 

  [x] has a test file with the suffix of -tests.ts

  checked the test file
   [x] tsc --noImplicitAny --target es5 --module commonjs ./n3-tests.ts 
   [x] tsc --noImplicitAny --target es6 --module commonjs ./n3-tests.ts 
   [x] --noImplicitAny --target es5 --module commonjs  
   [x] --noImplicitAny --target es6 --module commonjs  

*/

+4 −2
Changes for tsconfig.json: 4 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -3,12 +3,14 @@
        "module": "commonjs",
        "target": "es6",
        "noImplicitAny": true,
        "strictNullChecks": false,
        "strictNullChecks": true,
        "baseUrl": "../",
        "typeRoots": [
            "../"
        ],
        "types": [],
        "types": [
            "node"
        ],
        "noEmit": true,
        "forceConsistentCasingInFileNames": true
    },