我正在使用 Material-ui 与 TypeScript 模板进行反应。我的所有代码都工作正常,但我在多行上收到此错误(不是错误警告,而是在我的代码呈现时出现红线)
Could not find a declaration file for module 'react/jsx-runtime'. 'C:/Users/dell/Desktop/Web current Projects/typescript/card/node_modules/react/jsx-runtime.js' implicitly has an 'any' type.
If the 'react' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react`ts(7016)
Run Code Online (Sandbox Code Playgroud) 我一直在 GitHub 上为一个组织的私人仓库做出贡献。组织中没有添加成员,在组织页面显示此消息
\n\n\n该组织没有公共成员。您必须是成员才能查看谁\xe2\x80\x99 是该组织的一部分。
\n
因此,我是该组织的一部分,并且我已经进行了一些提交,并通过 GPD 签名验证进行了验证,但这些提交并未计入我的贡献热图,即使我已经选中了在私人存储库上显示贡献的选项。GitHub 是否会计算您在组织的私人存储库中为热图所做的提交?
\n
// Update the other user that current user has asked for revision
export async function updateOtherUserForContractRevision(contractID : string, comments : any) {
// getting userDetails
let currentUser : string | any = localStorage.getItem("userDetails");
currentUser = JSON.parse(currentUser);
// update fields in contractRecieved
const contractsRecievedRef : any = doc(db, "contractsRecieved", currentUser.uid);
// const queryContractsRecieved = query(contractsRecievedRef,
// where('contractDetails.contract.contractID','array-contains',contractID)
// );
// console.log(".////////updateOtherUserForContractRevision", queryContractsRecieved ,contractID)
onSnapshot(contractsRecievedRef, (doc: any) => {
doc.data().contract.map((contract: any) => {
if(contract.contractDetails.contract.contractID === contractID) {
// I reach my desired …
Run Code Online (Sandbox Code Playgroud) javascript nosql firebase google-cloud-platform google-cloud-firestore
javascript ×2
firebase ×1
git ×1
git-commit ×1
github ×1
material-ui ×1
nosql ×1
reactjs ×1
typescript ×1