๐
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export ok = 45 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ActionType } from '../actionTypes' | |
import { Action } from '../actions' | |
interface RepositoriesState { | |
loading: boolean | |
error: string | null | |
data: string[] | |
} | |
const initialState = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useMemo } from 'react'; | |
type Connection<T> = { | |
readonly edges : readonly ({ | |
readonly node? : T | null ; | |
readonly cursor?:string | |
} | null)[]; | |
}; | |
export function useConnection<T>(connection?:Connection<T>){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import NextAuth from "next-auth"; | |
import CredentialsProvider from "next-auth/providers/credentials"; | |
type TA_Token = { | |
token: string; | |
user_id: number; | |
}; | |
export default NextAuth({ | |
providers: [ |
OlderNewer