Skip to content

Commit

Permalink
Merge pull request #173 from ahrjarrett/changeset-release/main
Browse files Browse the repository at this point in the history
chore: release package
  • Loading branch information
ahrjarrett authored Nov 16, 2024
2 parents 7666a6d + af78f7a commit ee440e6
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 38 deletions.
36 changes: 0 additions & 36 deletions .changeset/mighty-yaks-compare.md

This file was deleted.

37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,42 @@
# any-ts

## 0.48.1

### Patch Changes

- [#171](https://github.com/ahrjarrett/any-ts/pull/171) [`47039da`](https://github.com/ahrjarrett/any-ts/commit/47039dae4b17697361cb3678d087c2a407355ec3) Thanks [@ahrjarrett](https://github.com/ahrjarrett)! - feat: adds `inline` type utility

### new features

- new [inline](https://github.com/ahrjarrett/any-ts/compare/%40ahrjarrett/v0.48.1?expand=1#diff-8f609800e1fe1486238044764d22867704573f7319ac89246dfcedfe9b3d7b68R9) utility

`inline` is basically a type-level identity function.

like its runtime counterpart, it can be pretty useful.

the name `inline` refers to the particular use case that I personally usually use it for,
which is for wrapping a type literal so that an interface can extend it.

```typescript
import type { inline } from "any-ts";

//////////////
/// example

/**
* did you know you can make an interface out of an array?
* this can be useful when you want to preserve the
* identifier: vvvv */
interface Numbers extends inline<number[]> {}

declare const numbers: Numbers;
// ^? const numbers: Numbers

// normal array behavior is preserved:
const copy = [...ex_01.numbers];
// ^? const copy: number[]
```

## 0.48.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "any-ts",
"private": false,
"version": "0.48.0",
"version": "0.48.1",
"type": "module",
"author": {
"name": "Andrew Jarrett",
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const ANY_TS_VERSION = "0.48.0" as const
export const ANY_TS_VERSION = "0.48.1" as const
export type ANY_TS_VERSION = typeof ANY_TS_VERSION

0 comments on commit ee440e6

Please sign in to comment.