Skip to content

Commit

Permalink
Rename package to caketype
Browse files Browse the repository at this point in the history
  • Loading branch information
justinyaodu committed Jan 12, 2023
1 parent 4f3db1b commit dfaa825
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/coverage/
/dist/
/etc/typesafer.api.md
/etc/caketype.api.md
/temp/
/types/
.eslintcache
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ These functions can be imported directly, or accessed as properties of `MapUtils
```ts
const nestedMap: Map<number, Map<string, number>> = new Map();

import { deepSet } from "typesafer";
import { deepSet } from "caketype";
deepSet(nestedMap, 3, "hi", 7); // Map { 3 -> Map { "hi" -> 7 } }

// alternatively:
import { MapUtils } from "typesafer";
import { MapUtils } from "caketype";
MapUtils.deepSet(nestedMap, 3, "hi", 7); // Map { 3 -> Map { "hi" -> 7 } }
```

Expand Down Expand Up @@ -357,11 +357,11 @@ These functions can be imported directly, or accessed as properties of
`ObjectUtils`:

```ts
import { merge } from "typesafer";
import { merge } from "caketype";
merge({ a: 1 }, { b: 2 }); // { a: 1, b: 2 }

// alternatively:
import { ObjectUtils } from "typesafer";
import { ObjectUtils } from "caketype";
ObjectUtils.merge({ a: 1 }, { b: 2 }); // { a: 1, b: 2 }
```

Expand Down
2 changes: 1 addition & 1 deletion etc/typesafer.api.md → etc/caketype.api.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## API Report File for "typesafer"
## API Report File for "caketype"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "typesafer",
"name": "caketype",
"version": "0.1.0",
"description": "Runtime type checking and other type-safe helpers for TypeScript",
"author": "Justin Yao Du <[email protected]>",
"license": "MIT",
"homepage": "https://github.com/justinyaodu/typesafer",
"bugs": "https://github.com/justinyaodu/typesafer/issues",
"repository": "github:justinyaodu/typesafer",
"homepage": "https://github.com/justinyaodu/caketype",
"bugs": "https://github.com/justinyaodu/caketype/issues",
"repository": "github:justinyaodu/caketype",
"files": [
"dist/"
],
"main": "dist/index.js",
"types": "dist/typesafer.d.ts",
"types": "dist/caketype.d.ts",
"scripts": {
"clean": "rm -rf dist/* types/*",
"build": "mkdir -p dist/ types/ && npm run clean && tsc && api-extractor run",
Expand Down
4 changes: 2 additions & 2 deletions src/MapUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -438,11 +438,11 @@ function deepSet<M extends DeepMap<K>, K extends [unknown, ...unknown[]]>(
* ```ts
* const nestedMap: Map<number, Map<string, number>> = new Map();
*
* import { deepSet } from "typesafer";
* import { deepSet } from "caketype";
* deepSet(nestedMap, 3, "hi", 7); // Map { 3 -> Map { "hi" -> 7 } }
*
* // alternatively:
* import { MapUtils } from "typesafer";
* import { MapUtils } from "caketype";
* MapUtils.deepSet(nestedMap, 3, "hi", 7); // Map { 3 -> Map { "hi" -> 7 } }
* ```
*
Expand Down
4 changes: 2 additions & 2 deletions src/ObjectUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -576,11 +576,11 @@ function pick<T extends object, K extends (keyof T & (string | symbol))[]>(
* `ObjectUtils`:
*
* ```ts
* import { merge } from "typesafer";
* import { merge } from "caketype";
* merge({ a: 1 }, { b: 2 }); // { a: 1, b: 2 }
*
* // alternatively:
* import { ObjectUtils } from "typesafer";
* import { ObjectUtils } from "caketype";
* ObjectUtils.merge({ a: 1 }, { b: 2 }); // { a: 1, b: 2 }
* ```
*
Expand Down

0 comments on commit dfaa825

Please sign in to comment.