Skip to content

Commit 4a539af

Browse files
authored
Fix typo in getstaticprops ts snippet (#69)
* fix(nextjs-ts): fix a typo in get static props type * docs(readme): fix a typo in nextjs ts getstaticprops
1 parent 82acd45 commit 4a539af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/vscode/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ const handleCallback = useCallback(() => {}, []);
209209
2. `ngspt` (Next.js get static props)
210210

211211
```tsx
212-
export const getStaticProps: getStaticProps = async (context) => {
212+
export const getStaticProps: GetStaticProps = async (context) => {
213213
return { props: {} };
214214
};
215215
```

packages/vscode/snippets/next-typescript.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"ngspt": {
1515
"prefix": "ngsp",
1616
"body": [
17-
"export const getStaticProps: getStaticProps = async context => {",
17+
"export const getStaticProps: GetStaticProps = async context => {",
1818
" return {",
1919
" props: {},",
2020
" };",

0 commit comments

Comments
 (0)