mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Added first hapi TS tests
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
import {Server, ServerOptions} from "hapi";
|
||||
|
||||
const options:ServerOptions = {
|
||||
port: 8000
|
||||
}
|
||||
|
||||
const server = new Server(options);
|
||||
server.start();
|
||||
|
||||
console.log('Server started at: ' + server.info.uri);
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
// From https://hapijs.com/tutorials/getting-started#creating-a-server
|
||||
import { Server, ServerOptions } from 'hapi';
|
||||
|
||||
const options: ServerOptions = {
|
||||
port: 8000,
|
||||
};
|
||||
|
||||
const server = new Server(options);
|
||||
server.start();
|
||||
|
||||
console.log('Server started at: ' + server.info.uri);
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
// Type definitions for hapi 17.0
|
||||
// Project: https://github.com/hapijs/hapi
|
||||
// Definitions by: Marc Bornträger<https://github.com/BorntraegerMarc>
|
||||
// Rafael Souza Fijalkowski <https://github.com/rafaelsouzaf>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
// Note/Disclaimer: None.
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
/** Getting Started */
|
||||
export * from './getting-started/01-creating-a-server';
|
||||
@@ -23,6 +23,6 @@
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"hapi-tests.ts"
|
||||
"test/index.test.d.ts"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user