python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Correct type for children props in wrapper class?
Im trying to create a wrapper class that simply returns children props
type Props {
children: any;
}
const Wrapper: = ({ children }: Props) {
//some logic
return children;
}
Curios if it exi...
Mr. Soup
Votes: 0
Answers: 2
.forEach for List - org.gradle.api.GradleException: - Error: Call requires API level 24 (current min is 22): java.lang.Iterable#forEach [NewApi]
I have this code:
private val recipes: List<Recipe>,
...
recipes.forEach {
recyclerItems.add(RecipeBinder(it, imageLoader, onRecipeClick))
}
And with check I have this error:
* Exceptio...
Vladimir Fisher
Votes: 0
Answers: 3
How can I run Linter only on changed files?
I have a project with many js files and I don't wanna run the validation for all files in the CI, only the edited ones. There's a simple command to do that? or should I do it programmatically?
Vinicius Figueiredo Rodrigues
Votes: 0
Answers: 1
Custom rule for application/problem+json using Stoplight Spectral CLI
I'm trying to make a custom rule based on the unkown-error-format that can be found here here. Using this Open API document as an example:
openapi-generated.yaml
openapi: 3.0.3
info:
title: API
v...
pedroddvale
Votes: 0
Answers: 0