This file contains hidden or 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 { nodeFileTrace } from "@vercel/nft"; | |
import { Sema } from "async-sema"; | |
import { glob } from "glob"; | |
import { NextConfigComplete } from "next/dist/server/config-shared"; | |
import fs from "node:fs/promises"; | |
import path from "node:path"; | |
interface RequiredServerFilesManifest { | |
version: number; | |
config: NextConfigComplete; |
This file contains hidden or 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
// basically I went insane | |
// for emergency reasons (thanks orac) | |
// implemented as if using C because what sort of C++ doesn't support std::string | |
#ifndef __STRING_HPP | |
#define __STRING_HPP | |
#include <cstdlib> | |
#include <cstring> | |
#include <limits> | |
#include <istream> |
This file contains hidden or 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
/** | |
* Make certain fields in a object type required | |
* | |
* @example | |
* interface A { | |
* a?: string; | |
* b?: string; | |
* c?: string; | |
* } | |
* type B = RequireFields<A, "b" | "c">; |