Skip to content

[FEATURE] Add Next JS Typescript Component Snippet  #9

@rayankzi

Description

@rayankzi

Description

I would like to add support for Next JS TypeScript components. There is a built in type called NextComponentType that can be used with Next JS components, and I would like to add a snippet for that. The snippet would look like:

import type { NextComponentType, NextPageContext } from "next";

interface Props {}

const Component: NextComponentType<NextPageContext, {}, Props> = (props: Props) => {
  return (
    <div></div>
  )
}

export default Component

Screenshots

No response

Additional information

The shortcut name for the snippet would be "nextct"

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions