Skip to content

Commit

Permalink
Merge pull request #479 from observablehq/prichey/add-types
Browse files Browse the repository at this point in the history
Add types declaration
  • Loading branch information
prichey authored Nov 7, 2024
2 parents ba9f648 + 59957d6 commit c53dbc9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@observablehq/prettier",
"version": "2.7.1-alpha.3",
"version": "2.7.1-alpha.4",
"description": "Prettier is an opinionated code formatter",
"bin": "./bin/prettier.js",
"repository": "prettier/prettier",
Expand All @@ -19,8 +19,10 @@
"standalone.js",
"src",
"bin",
"vendors"
"vendors",
"types/index.d.ts"
],
"types": "./types/index.d.ts",
"dependencies": {
"@angular/compiler": "12.2.16",
"@babel/code-frame": "7.16.7",
Expand Down Expand Up @@ -102,6 +104,7 @@
"@types/file-entry-cache": "5.0.2",
"@types/find-cache-dir": "3.2.1",
"@types/jest": "27.4.1",
"@types/prettier": "2.7.1",
"@typescript-eslint/eslint-plugin": "5.20.0",
"babel-jest": "27.5.1",
"benchmark": "2.1.4",
Expand Down
3 changes: 3 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare module "@observablehq/prettier" {
export * from "prettier";
}
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1709,6 +1709,11 @@
resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0"
integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==

"@types/[email protected]":
version "2.7.1"
resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.1.tgz#dfd20e2dc35f027cdd6c1908e80a5ddc7499670e"
integrity sha512-ri0UmynRRvZiiUJdiz38MmIblKK+oH30MztdBVR95dv/Ubw6neWSb8u1XpRb72L4qsZOhz+L+z9JD40SJmfWow==

"@types/prettier@^2.1.5":
version "2.4.3"
resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.4.3.tgz#a3c65525b91fca7da00ab1a3ac2b5a2a4afbffbf"
Expand Down

0 comments on commit c53dbc9

Please sign in to comment.