[page] export a default

This commit is contained in:
James Garbutt 2018-08-20 14:43:34 +01:00
parent ed2ac3e90a
commit 4cd58dee40
2 changed files with 4 additions and 6 deletions

View File

@ -1,4 +1,4 @@
// Type definitions for page v1.5.0
// Type definitions for page v1.8.6
// Project: http://visionmedia.github.io/page.js/
// Definitions by: Alan Norbauer <http://alan.norbauer.com/>
// James Garbutt <https://github.com/43081j>
@ -285,8 +285,8 @@ declare namespace PageJS {
}
declare module "page" {
var page: PageJS.Static;
export = page;
const page: PageJS.Static;
export default page;
}
declare var page: PageJS.Static;

View File

@ -1,6 +1,4 @@
import page = require("page");
import page from 'page';
//***********************************************************************
// Basic Example