Questions tagged [typescript]
TypeScript is an open-source programming language developed and maintained by Microsoft. It is a strict syntactical superset of JavaScript, and adds optional static typing to the language. All question related to this topic in Sitecore reference, should use this tag.
6
questions
0
votes
0
answers
30
views
Unable to access 'FileProperties' JSON of document uploaded to Content Hub DAM to retrieve file extension
Running Sitecore.NET 10.3.0 - November 01, 2022
.NET Framework 4.8
I'm trying to figure out how to retrieve the FileProperties (JSON values) that contains metadata information regarding files uploaded ...
0
votes
2
answers
177
views
Can props.fields ever be null in a Rendering Component?
I'm creating custom types for components in TypeScript (with strict null checks enabled) and I want to confirm if it makes sense to be doing null checks on props.fields, eg.:
if (!props.fields) {
...
1
vote
0
answers
335
views
Get URL for route item from Content List field
I have a field with a ContentList / Treelist of pages, each one of which I want the URL for.
Using JSS with Next.js.
If I inspect the field in the browser I can see the URL listed for each item as ...
0
votes
2
answers
520
views
How is Integrated mode configured for a Sitecore JSS React app?
We have a Sitecore JSS app that has been working for some time in both Disconnected and Connected mode, locally in Docker and hosted on Azure App Services. It runs in the CM environment, and on a Node ...
1
vote
1
answer
798
views
How does one convert Sitecore JSS React boilerplate to typescript?
Is there a guide of some kind or possibly some helpful information floating around regarding the addition of typescript in a Sitecore JSS react boilerplate project?
So far I've only been able to get ...
1
vote
1
answer
1k
views
Error on typings using JSS Text with Typescript
I'm getting an error on the fields property when using Typescript from this tutorial
class Profile extends React.Component<Props, State> {
constructor(props: any){
super(props);
}
...