From d65b498c5ee7109c158584f1f2aef1f497be1f0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81xel?= Date: Mon, 19 Oct 2015 22:09:02 +0200 Subject: [PATCH] Rename simpleStorage files in order to match naming convention. Rename namespace including author name to a more convenient one. --- CONTRIBUTORS.md | 2 +- .../simplestorage.js-tests.ts | 2 +- .../simplestorage.js.d.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename simpleStorage/simpleStorage-tests.ts => simplestorage.js/simplestorage.js-tests.ts (96%) rename simpleStorage/simpleStorage.d.ts => simplestorage.js/simplestorage.js.d.ts (98%) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 0b6c2f714..7ac38ce8a 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -1024,7 +1024,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](signature_pad/signature_pad.d.ts) [signature_pad](https://github.com/szimek/signature_pad) by [Abubaker Bashir](https://github.com/AbubakerB) * [:link:](simple-cw-node/simple-cw-node.d.ts) [simple-cw-node](https://github.com/astronaughts/simple-cw-node) by [vvakame](https://github.com/vvakame) * [:link:](jquery.simplemodal/jquery.simplemodal.d.ts) [SimpleModal](http://www.ericmmartin.com/projects/simplemodal) by [Friedrich von Never](https://github.com/ForNeVeR) -* [:link:](simpleStorage/simpleStorage.d.ts) [simpleStorage](https://github.com/andris9/simpleStorage) by [Áxel Costas Pena](https://github.com/axelcostaspena) +* [:link:](simpleStorage/simplestorage.js.d.ts) [simpleStorage](https://github.com/andris9/simpleStorage) by [Áxel Costas Pena](https://github.com/axelcostaspena) * [:link:](sinon/sinon.d.ts) [Sinon](http://sinonjs.org) by [William Sears](https://github.com/mrbigdog2u) * [:link:](sinon-chai/sinon-chai.d.ts) [sinon-chai](https://github.com/domenic/sinon-chai) by [Kazi Manzur Rashid](https://github.com/kazimanzurrashid), [Jed Mao](https://github.com/jedmao) * [:link:](sinon-chrome/sinon-chrome.d.ts) [Sinon-Chrome](https://github.com/vitalets/sinon-chrome) by [Tim Perry](https://github.com/pimterry) diff --git a/simpleStorage/simpleStorage-tests.ts b/simplestorage.js/simplestorage.js-tests.ts similarity index 96% rename from simpleStorage/simpleStorage-tests.ts rename to simplestorage.js/simplestorage.js-tests.ts index 9ffcd1853..1e9f4202a 100644 --- a/simpleStorage/simpleStorage-tests.ts +++ b/simplestorage.js/simplestorage.js-tests.ts @@ -1,4 +1,4 @@ -/// +/// var versionTest: string = simpleStorage.version; var canUseTest: boolean = simpleStorage.canUse(); diff --git a/simpleStorage/simpleStorage.d.ts b/simplestorage.js/simplestorage.js.d.ts similarity index 98% rename from simpleStorage/simpleStorage.d.ts rename to simplestorage.js/simplestorage.js.d.ts index 52c4f27ee..bda285aac 100644 --- a/simpleStorage/simpleStorage.d.ts +++ b/simplestorage.js/simplestorage.js.d.ts @@ -3,7 +3,7 @@ // Definitions by: Áxel Costas Pena // Definitions: https://github.com/borisyankov/DefinitelyTyped -declare module andris9_simpleStorage { +declare module simplestoragejs { /** * {@link simpleStorage} API is a subset of {@link http://www.jstorage.info/|jStorage} with slight modifications, so for most cases it should work out of the box if you are converting from {@link http://www.jstorage.info/|jStorage}. Main difference is between return values - if an action failed because of an error (storage full, storage not available, invalid data used etc.), you get the error object as the return value. {@link http://www.jstorage.info/|jStorage} never indicated anything if an error occurred. @@ -107,4 +107,4 @@ declare module "simpleStorage" { * {@link simpleStorage} is very small - about 1kB in size when minimized and gzipped. * @see https://github.com/andris9/simpleStorage#simplestorage */ -declare var simpleStorage:andris9_simpleStorage.SimpleStorage; +declare var simpleStorage:simplestoragejs.SimpleStorage;