rest-hooks
Advanced tools
Comparing version 0.0.3 to 0.0.4
import ModelResource from './ModelResource'; | ||
export default function withSchema<T extends typeof ModelResource>(Model: T): void; | ||
export default function withSchema<T extends typeof ModelResource>(Model: T): T; |
@@ -13,3 +13,4 @@ import "core-js/modules/es6.regexp.to-string"; | ||
}); | ||
return Model; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9tb2RlbC9yZWdpc3RyeS50cyJdLCJuYW1lcyI6WyJzY2hlbWEiLCJ3aXRoU2NoZW1hIiwiTW9kZWwiLCJFbnRpdHkiLCJ1cmxSb290IiwiaWRBdHRyaWJ1dGUiLCJ2YWx1ZSIsInBrIiwidG9TdHJpbmciLCJwcm9jZXNzU3RyYXRlZ3kiLCJmcm9tSlMiXSwibWFwcGluZ3MiOiI7O0FBQ0EsU0FBU0EsTUFBVCxRQUF1QixXQUF2QjtBQUVBLGVBQWUsU0FBU0MsVUFBVCxDQUFvREMsS0FBcEQsRUFBOEQ7QUFDM0VBLEVBQUFBLEtBQUssQ0FBQ0YsTUFBTixHQUFlLElBQUlBLE1BQU0sQ0FBQ0csTUFBWCxDQUNiRCxLQUFLLENBQUNFLE9BRE8sRUFFYixFQUZhLEVBR2I7QUFDRUMsSUFBQUEsV0FERix1QkFDY0MsS0FEZCxFQUNxQjtBQUNqQixhQUFPLENBQUNKLEtBQUssQ0FBQ0ssRUFBTixDQUFTRCxLQUFULEtBQW1CLEVBQXBCLEVBQXdCRSxRQUF4QixFQUFQO0FBQ0QsS0FISDtBQUlFQyxJQUFBQSxlQUpGLDJCQUlrQkgsS0FKbEIsRUFJeUI7QUFDckIsYUFBT0osS0FBSyxDQUFDUSxNQUFOLENBQWFKLEtBQWIsQ0FBUDtBQUNEO0FBTkgsR0FIYSxDQUFmO0FBWUQiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgTW9kZWxSZXNvdXJjZSBmcm9tIC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ERix1QkFDY0MsS0FEZCxFQUNxQjtBQUNqQixhQUFPLENBQUNKLEtBQUssQ0FBQ0ssRUFBTixDQUFTRCxLQUFULEtBQW1CLEVBQXBCLEVBQXdCRSxRQUF4QixFQUFQO0FBQ0QsS0FISDtBQUlFQyxJQUFBQSxlQUpGLDJCQUlrQkgsS0FKbEIsRUFJeUI7QUFDckIsYUFBT0osS0FBSyxDQUFDUSxNQUFOLENBQWFKLEtBQWIsQ0FBUDtBQUNEO0FBTkgsR0FIYSxDQUFmO0FBWUEsU0FBT0osS0FBUDtBQUNEIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IE1vZGVsUmVzb3VyY2UgZnJvbSAnLi9Nb2RlbFJlc291cmNlJztcbmltcG9ydCB7IHNjaGVtYSB9IGZyb20gJ25vcm1hbGl6cic7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIHdpdGhTY2hlbWE8VCBleHRlbmRzIHR5cGVvZiBNb2RlbFJlc291cmNlPihNb2RlbDogVCkge1xuICBNb2RlbC5zY2hlbWEgPSBuZXcgc2NoZW1hLkVudGl0eShcbiAgICBNb2RlbC51cmxSb290LFxuICAgIHt9LFxuICAgIHtcbiAgICAgIGlkQXR0cmlidXRlKHZhbHVlKSB7XG4gICAgICAgIHJldHVybiAoTW9kZWwucGsodmFsdWUpIHx8ICcnKS50b1N0cmluZygpO1xuICAgICAgfSxcbiAgICAgIHByb2Nlc3NTdHJhdGVneSh2YWx1ZSkge1xuICAgICAgICByZXR1cm4gTW9kZWwuZnJvbUpTKHZhbHVlKTtcbiAgICAgIH0sXG4gICAgfSxcbiAgKTtcbiAgcmV0dXJuIE1vZGVsO1xufVxuIl19 |
{ | ||
"name": "rest-hooks", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Easy react hooks for REST apis", | ||
@@ -13,3 +13,3 @@ "sideEffects": false, | ||
"scripts": { | ||
"build:lib": "NODE_ENV=production babel src --out-dir lib --source-maps inline --extensions '.ts' --ignore '**/__tests__/**'", | ||
"build:lib": "NODE_ENV=production babel src --out-dir lib --source-maps inline --extensions '.ts,.tsx' --ignore '**/__tests__/**'", | ||
"build:types": "tsc --emitDeclarationOnly -p ./src", | ||
@@ -16,0 +16,0 @@ "build:clean": "rimraf lib", |
42643
23
394