Merge pull request #30219 from t49tran/remove-mobx-cookie

remove [mobx-cookie] type definition
This commit is contained in:
Armando Aguirre
2018-11-05 16:35:13 -08:00
committed by GitHub
5 changed files with 1760 additions and 1806 deletions
+1760 -1754
View File
File diff suppressed because it is too large Load Diff
-17
View File
@@ -1,17 +0,0 @@
// Type definitions for mobx-cookie 1.1
// Project: https://github.com/will-stone/mobx-cookie#readme
// Definitions by: Duong Tran <https://github.com/t49tran>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import { CookieAttributes } from 'js-cookie';
declare class MobxCookie {
constructor(name: string, options?: CookieAttributes);
get(): any;
set(value: any, options?: CookieAttributes): void;
remove(): void;
}
export default MobxCookie;
-11
View File
@@ -1,11 +0,0 @@
import MobxCookie from 'mobx-cookie';
// Declare a reactive mobx cookie that last for 20 days
const mobxCookie = new MobxCookie('TEST_MOBX_COOKIE', {expires: 20});
// Set a new value for the cookie that last for 10 days
mobxCookie.set('MY_VALUE', {expires: 10});
const cookieValue = mobxCookie.get();
mobxCookie.remove();
-23
View File
@@ -1,23 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"mobx-cookie-tests.ts"
]
}
-1
View File
@@ -1 +0,0 @@
{ "extends": "dtslint/dt.json" }