mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
17 lines
677 B
TypeScript
17 lines
677 B
TypeScript
// Type definitions for easy-xapi-utils
|
|
// Project: https://github.com/DeadAlready/easy-xapi-utils
|
|
// Definitions by: Karl Düüna <https://github.com/DeadAlready/>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference path="../express/express.d.ts" />
|
|
/// <reference path="../easy-jsend/easy-jsend.d.ts" />
|
|
/// <reference path="../easy-x-headers/easy-x-headers.d.ts" />
|
|
|
|
declare module "easy-xapi-utils" {
|
|
import express = require('express');
|
|
|
|
export function isLoggedIn(role?: string): express.RequestHandler;
|
|
export function isLoggedOut(): express.RequestHandler;
|
|
export function hasRole(role: string): express.RequestHandler;
|
|
}
|