Explore

typescript ×
  • screenshot

    fetching is not happening in client component?

    i have a page that have sidebar.sidebar item is render by fetching data and it works...

  • screenshot

    Next-auth get token for Github REST API

    I want to implement user login and access some user data via the Github REST API...

  • screenshot

    How to detect password protected file in Angular 14+ without using Promise calls

    `Have a requirement of identifying the uploaded file is a password protected file or not. Based...

  • screenshot

    How do I solve error Module parse failed: Unexpected character '@' You may need an appropriate loader to handle this file type?

    Angular Project details: "@angular/cli": "^15.2.10" "swiper": "^8.4.7", Am using swiper in my angular project and after...

  • screenshot

    Using TypeScript in Node.js project with "module": "commonjs"

    TypeScript documentation says: Node.js’s rules for module format detection and interoperability make it incorrect to specify...

  • screenshot

    How to get Deno js cache types?

    I try to use the Monaco editor to identify the type file of Deno to edit...

  • screenshot

    Why does this Next.js code keep making requests to the specified endpoint despite conditional configuration?

    Why does this specific Next.js code continue to make calls to the indicated endpoint, even though...

  • screenshot

    How to type a function with arbitrary arguments in TypeScript, without using any?

    As shown here, a function with an arbitrary number of arguments (potentially of differing types) can...

  • screenshot

    Electron: How to add functionality to child window buttons in React

    What we want to achieve: I want to create a button to close child windows, also...

  • screenshot

    Serving Astro with Rust

    As some of you might know, for the past few months, my free time is spent...

  • screenshot

    Vue apollo, throws error every time on load

    <template> <div v-if="loading"><loading></loading></div> <div v-else-if="error"><error v-bind="error"/></div> <div v-else> <div class="title" v-if="!error"> <h1>Recently Added:</h1></div> <section class="adverts" >...

  • screenshot

    Is there a way to solve this problem , Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes'.?

    I create a file called ThemeContext: import { createContext, useState } from "react"; import PropTypes from...

  • Exploring the Universe of API Testing with TypeScript🌌✨

    This post provides a comprehensive overview of the nine essential tests for ensuring the reliability, performance,...

  • screenshot

    TextInput type password in react native paper

    I have a question, currently I have this code for my password type input and I...

  • screenshot

    Narrowing with conditional on extends keyof T

    I have looked through TypeScript keyof index type is too wide, but fail to understand if/how...

  • screenshot

    Why is Vercel proxy to API route not working?

    I have my frontend in Vite (React, TS) and backend in Django. When I make request...

  • screenshot

    When A and B has one-to-many relations, how to know to know how many B related with specific A in TypeORM optimally?

    In below example, BlogPost entity depends on BlogPostCategory: import { Entity, Column, PrimaryGeneratedColumn, ManyToOne as ManyToOne,...

  • screenshot

    How to Implement Authentication in Next.js 14 With NextAuth.js, Shadcn/ui, react-hook-form, and Zod

    Within the JavaScript ecosystem and, more specifically, in applications developed with Next.js, one of the most...

  • screenshot

    Sourcery | Instant Code Review for Faster Velocity

    Blocked by Slow Code Reviews? Here’s How to Stop Waiting Code reviews are great - but...

  • screenshot

    Mastering Type-Safe JSON Serialization in TypeScript

    This article explores the challenges of data serialization in TypeScript when using the JSON format. It...

  • screenshot

    Vue + Pinia data storage and retrieval

    I'm studying Vue and Pinia. I ran into such a problem that I don't know how...

  • screenshot

    Passing type to a hook just like useState

    I have a custom hook built with Zustand that can store multiple types of data, but...

  • screenshot

    Mastering Modal Dialogs in React Like a Pro

    Managing pop-up dialogs in React apps can be complex and cumbersome, leading to performance issues and...

  • screenshot

    Add more details other than name, image, and id to NextAuth session

    I have implemented next-auth in Next.js project and I have this JWT and session: export const...