mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Merge pull request #30219 from t49tran/remove-mobx-cookie
remove [mobx-cookie] type definition
This commit is contained in:
+1760
-1754
File diff suppressed because it is too large
Load Diff
Vendored
-17
@@ -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;
|
||||
@@ -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();
|
||||
@@ -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 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user